new: configurable warp noise parameters, fix stopping issues

This commit is contained in:
Hiddify
2024-02-13 16:52:58 +01:00
parent a1314d84a9
commit 313b9a9adb
7 changed files with 40 additions and 20 deletions

View File

@@ -182,7 +182,9 @@ func patchWarp(base *option.Outbound) error {
port, _ := warp["port"].(float64)
detour, _ := warp["detour"].(string)
fakePackets, _ := warp["fake_packets"].(string)
warpConfig, err := generateWarp(key, host, uint16(port), fakePackets)
fakePacketsSize, _ := warp["fake_packets_size"].(string)
fakePacketsDelay, _ := warp["fake_packets_delay"].(string)
warpConfig, err := generateWarp(key, host, uint16(port), fakePackets, fakePacketsSize, fakePacketsDelay)
if err != nil {
fmt.Printf("Error generating warp config: %v", err)
return err