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

@@ -62,6 +62,13 @@ func changeConfigOptions(configOptionsJson string) error {
if err != nil {
return err
}
if configOptions.Warp.WireguardConfigStr != "" {
err := json.Unmarshal([]byte(configOptions.Warp.WireguardConfigStr), &configOptions.Warp.WireguardConfig)
if err != nil {
return err
}
}
return nil
}