This commit is contained in:
2025-10-17 18:13:49 +11:00
parent be656cca57
commit 1e8a79c2d2
21 changed files with 186 additions and 132 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,
},
}

View File

@@ -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,

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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,
}