Skip to content

Commit

Permalink
fix: warp random domains
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Aug 5, 2024
1 parent 94ee916 commit da5e90e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/warp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/netip"
"os"
"strings"

"github.com/bepass-org/warp-plus/warp"
C "github.com/sagernet/sing-box/constant"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit da5e90e

Please sign in to comment.