new: add chain support & fix warp bug

This commit is contained in:
Hiddify
2024-01-30 19:13:14 +01:00
parent 571e910026
commit 8a56261e95
5 changed files with 42 additions and 11 deletions

View File

@@ -162,11 +162,8 @@ func generateWarp(license string, host string, port uint16, fakePackets string)
if host == "auto" && fakePackets == "" {
fakePackets = "5-10"
}
if host == "default" || host == "random" || host == "auto" {
host = getRandomIP()
}
if port == 0 {
port = generateRandomPort()
if _, err := os.Stat("./wgcf-identity.json"); err == nil {
os.Remove("./wgcf-identity.json")
}
if !warp.CheckProfileExists(license) {