Update On Sat Aug 24 20:31:52 CEST 2024

This commit is contained in:
github-action[bot]
2024-08-24 20:31:53 +02:00
parent 1c8560324f
commit 6a6046ae72
65 changed files with 1764 additions and 1362 deletions

View File

@@ -174,10 +174,10 @@ func (c *ClashSub) ToRelayConfigs(listenHost string) ([]*relay_cfg.Config, error
// add other proxies address in group to relay config
for _, proxy := range proxies[1:] {
remote := net.JoinHostPort(proxy.rawServer, proxy.rawPort)
if strInArray(remote, rc.TCPRemotes) {
if strInArray(remote, rc.Remotes) {
continue
}
rc.TCPRemotes = append(rc.TCPRemotes, remote)
rc.Remotes = append(rc.Remotes, remote)
if proxy.UDP {
rc.Options = &relay_cfg.Options{
EnableUDP: true,

View File

@@ -136,7 +136,7 @@ func (p *Proxies) ToRelayConfig(listenHost string, listenPort string, newName st
ListenType: constant.RelayTypeRaw,
TransportType: constant.RelayTypeRaw,
Listen: net.JoinHostPort(listenHost, listenPort),
TCPRemotes: []string{remoteAddr},
Remotes: []string{remoteAddr},
}
if p.UDP {
r.Options = &relay_cfg.Options{