fix: warp random domains

This commit is contained in:
Hiddify
2024-08-05 18:39:47 +02:00
parent 94ee9164de
commit da5e90e289

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"net/netip"
"os"
"strings"
"github.com/bepass-org/warp-plus/warp"
C "github.com/sagernet/sing-box/constant"
@@ -189,7 +190,7 @@ func patchWarp(base *option.Outbound, configOpt *ConfigOptions, final bool, stat
if base.WireGuardOptions.Detour != "" {
base.WireGuardOptions.Server = "162.159.192.1"
} else {
rndDomain := generateRandomString(20)
rndDomain := strings.ToLower(generateRandomString(20))
staticIpsDns[rndDomain] = []string{}
if host != "auto4" {
randomIpPort, _ := warp.RandomWarpEndpoint(false, true)