diff --git a/core/src/main/golang/native/config/process.go b/core/src/main/golang/native/config/process.go index 606c07821..313256e9a 100644 --- a/core/src/main/golang/native/config/process.go +++ b/core/src/main/golang/native/config/process.go @@ -17,6 +17,7 @@ import ( ) var processors = []processor{ + patchExternalController, patchOverride, patchGeneral, patchProfile, @@ -28,6 +29,15 @@ var processors = []processor{ type processor func(cfg *config.RawConfig, profileDir string) error +func patchExternalController(cfg *config.RawConfig, _ string) error { + cfg.ExternalController = "" + cfg.ExternalControllerTLS = "" + cfg.ExternalControllerUnix = "" + cfg.Secret = "" + + return nil +} + func patchOverride(cfg *config.RawConfig, _ string) error { if err := json.NewDecoder(strings.NewReader(ReadOverride(OverrideSlotPersist))).Decode(cfg); err != nil { log.Warnln("Apply persist override: %s", err.Error()) diff --git a/core/src/main/java/com/github/kr328/clash/core/model/ConfigurationOverride.kt b/core/src/main/java/com/github/kr328/clash/core/model/ConfigurationOverride.kt index 8f87a6985..af3270e15 100644 --- a/core/src/main/java/com/github/kr328/clash/core/model/ConfigurationOverride.kt +++ b/core/src/main/java/com/github/kr328/clash/core/model/ConfigurationOverride.kt @@ -42,7 +42,7 @@ data class ConfigurationOverride( var ipv6: Boolean? = null, @SerialName("external-controller") - var externalController: String? = "127.0.0.1:0", + var externalController: String? = null, @SerialName("secret") var secret: String? = null,