fix: warp random domains
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/bepass-org/warp-plus/warp"
|
"github.com/bepass-org/warp-plus/warp"
|
||||||
C "github.com/sagernet/sing-box/constant"
|
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 != "" {
|
if base.WireGuardOptions.Detour != "" {
|
||||||
base.WireGuardOptions.Server = "162.159.192.1"
|
base.WireGuardOptions.Server = "162.159.192.1"
|
||||||
} else {
|
} else {
|
||||||
rndDomain := generateRandomString(20)
|
rndDomain := strings.ToLower(generateRandomString(20))
|
||||||
staticIpsDns[rndDomain] = []string{}
|
staticIpsDns[rndDomain] = []string{}
|
||||||
if host != "auto4" {
|
if host != "auto4" {
|
||||||
randomIpPort, _ := warp.RandomWarpEndpoint(false, true)
|
randomIpPort, _ := warp.RandomWarpEndpoint(false, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user