fix: final resolution to network change issue

This commit is contained in:
Hiddify
2024-02-22 09:42:29 +01:00
parent aa825f7fe7
commit 21ac2d1d11
5 changed files with 6 additions and 11 deletions

View File

@@ -34,9 +34,9 @@ func ActivateTunnelService(opt ConfigOptions) (bool, error) {
}
func DeactivateTunnelService() (bool, error) {
if !isSupportedOS() {
return true, nil
}
// if !isSupportedOS() {
// return true, nil
// }
go stopTunnelRequest()
return true, nil

View File

@@ -395,10 +395,6 @@ func BuildConfig(opt ConfigOptions, input option.Options) (*option.Options, erro
//inbound==warp over proxies
//outbound==proxies over warp
if opt.Warp.EnableWarp && (opt.Warp.Mode == "inbound" || opt.Warp.Mode == "outbound") {
fmt.Println("===========================")
fmt.Printf("%+v\n\n", opt.Warp)
fmt.Printf("%+v\n\n", opt.Warp.WireguardConfig)
fmt.Printf("%+v\n\n", opt.Warp.Account)
out, err := generateWarpSingbox(opt.Warp.WireguardConfig.ToWireguardConfig(), opt.Warp.CleanIP, opt.Warp.CleanPort, opt.Warp.FakePackets, opt.Warp.FakePacketSize, opt.Warp.FakePacketDelay)
if err != nil {