mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 09:11:01 +00:00
This commit is contained in:
@@ -68,7 +68,7 @@ func (p *AnytlsParser) Parse(config ParseConfig, proxy string) (P.Proxy, error)
|
||||
Name: remarks,
|
||||
Anytls: P.Anytls{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
Password: password,
|
||||
SNI: sni,
|
||||
SkipCertVerify: insecureBool,
|
||||
|
||||
@@ -76,7 +76,7 @@ func (p *HysteriaParser) Parse(config ParseConfig, proxy string) (P.Proxy, error
|
||||
Name: remarks,
|
||||
Hysteria: P.Hysteria{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
Up: upmbps,
|
||||
Down: downmbps,
|
||||
Auth: auth,
|
||||
|
||||
@@ -68,7 +68,7 @@ func (p *Hysteria2Parser) Parse(config ParseConfig, proxy string) (P.Proxy, erro
|
||||
Name: remarks,
|
||||
Hysteria2: P.Hysteria2{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
Password: password,
|
||||
Obfs: obfs,
|
||||
ObfsPassword: obfsPassword,
|
||||
|
||||
@@ -108,7 +108,7 @@ func (p *ShadowsocksParser) Parse(config ParseConfig, proxy string) (P.Proxy, er
|
||||
Cipher: method,
|
||||
Password: password,
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
UDP: config.UseUDP,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ func (p *ShadowsocksRParser) Parse(config ParseConfig, proxy string) (P.Proxy, e
|
||||
Name: remarks,
|
||||
ShadowSocksR: P.ShadowSocksR{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
Protocol: protocol,
|
||||
Cipher: method,
|
||||
Obfs: obfs,
|
||||
|
||||
@@ -79,7 +79,7 @@ func (p *SocksParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
|
||||
Name: remarks,
|
||||
Socks: P.Socks{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
UserName: username,
|
||||
Password: password,
|
||||
TLS: tls == "true",
|
||||
|
||||
@@ -63,7 +63,7 @@ func (p *TrojanParser) Parse(config ParseConfig, proxy string) (P.Proxy, error)
|
||||
insecureBool := insecure == "1"
|
||||
result := P.Trojan{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
Password: password,
|
||||
Network: network,
|
||||
UDP: udp == "true",
|
||||
|
||||
@@ -66,7 +66,7 @@ func (p *VlessParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
|
||||
|
||||
result := P.Vless{
|
||||
Server: server,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
UUID: uuid,
|
||||
Flow: flow,
|
||||
UDP: udp == "true",
|
||||
|
||||
@@ -109,9 +109,9 @@ func (p *VmessParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
|
||||
|
||||
result := P.Vmess{
|
||||
Server: vmess.Add,
|
||||
Port: port,
|
||||
Port: P.IntOrString(port),
|
||||
UUID: vmess.Id,
|
||||
AlterID: aid,
|
||||
AlterID: P.IntOrString(aid),
|
||||
Cipher: vmess.Scy,
|
||||
UDP: config.UseUDP,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user