mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
Update On Sat Aug 24 20:31:52 CEST 2024
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user