fix: final resolution to network change issue
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user