Skip to content

Commit

Permalink
[*]优化协议名
Browse files Browse the repository at this point in the history
  • Loading branch information
lcvvvv committed May 9, 2022
1 parent df606fc commit c17c6cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func FixProtocol(oldProtocol string) string {
if oldProtocol == "ssl/http" {
return "https"
}
if oldProtocol == "http-proxy" {
return "http"
}
if oldProtocol == "ms-wbt-server" {
return "rdp"
}
Expand Down Expand Up @@ -109,7 +112,7 @@ func FixProtocol(oldProtocol string) string {
return "db2"
}
if oldProtocol == "socks-proxy" {
return "sock5"
return "socks5"
}
if len(oldProtocol) > 4 {
if oldProtocol[:4] == "ssl/" {
Expand Down

0 comments on commit c17c6cb

Please sign in to comment.