Skip to content

Commit 37f334a

Browse files
authored
fix warp
1 parent 2d5da1a commit 37f334a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v2/config/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ func setOutbounds(options *option.Options, input *option.Options, opt *HiddifyOp
136136
}
137137
}
138138
if opt.Warp.EnableWarp && (opt.Warp.Mode == "warp_over_proxy" || opt.Warp.Mode == "proxy_over_warp") {
139-
out, err := GenerateWarpSingbox(opt.Warp.WireguardConfig, opt.Warp.CleanIP, opt.Warp.CleanPort, opt.Warp.FakePackets, opt.Warp.FakePacketSize, opt.Warp.FakePacketDelay, opt.Warp.FakePacketMode)
139+
wg := getOrGenerateWarpLocallyIfNeeded(&opt.Warp)
140+
out, err := GenerateWarpSingbox(wg, opt.Warp.CleanIP, opt.Warp.CleanPort, opt.Warp.FakePackets, opt.Warp.FakePacketSize, opt.Warp.FakePacketDelay, opt.Warp.FakePacketMode)
140141
if err != nil {
141142
return fmt.Errorf("failed to generate warp config: %v", err)
142143
}

0 commit comments

Comments
 (0)