new: add auto warp

This commit is contained in:
Hiddify
2024-01-26 14:01:13 +01:00
parent 65b4cb706a
commit 3b4a128b58
5 changed files with 12 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ func patchWarp(base *option.Outbound) error {
host, _ := warp["host"].(string)
port, _ := warp["port"].(float64)
fakePackets, _ := warp["fake_packets"].(string)
warpConfig, err := generateWarp(key, host, uint16(port))
warpConfig, err := generateWarp(key, host, uint16(port), fakePackets)
if err != nil {
fmt.Printf("Error generating warp config: %v", err)
return err
@@ -156,7 +156,6 @@ func patchWarp(base *option.Outbound) error {
base.Type = C.TypeWireGuard
base.WireGuardOptions = warpConfig.WireGuardOptions
base.WireGuardOptions.FakePackets = fakePackets
}