fix: warp configs, add warp delay, fix network switch

This commit is contained in:
Hiddify
2024-02-21 19:51:49 +01:00
parent bdd91a08b7
commit 70157d1ac6
8 changed files with 111 additions and 35 deletions

View File

@@ -34,6 +34,12 @@ func BuildConfig(path string, configOptionsJson string) (string, error) {
if err != nil {
return "", nil
}
if configOptions.Warp.WireguardConfigStr != "" {
err := json.Unmarshal([]byte(configOptions.Warp.WireguardConfigStr), &configOptions.Warp.WireguardConfig)
if err != nil {
return "", err
}
}
return config.BuildConfigJson(*configOptions, options)
}