smarter port selection

This commit is contained in:
yusing
2024-03-29 13:55:28 +00:00
parent 73dfc17a82
commit c445d50221
4 changed files with 48 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ func newStreamRouteBase(config *ProxyConfig) (*StreamRouteBase, error) {
dstPort = portSplit[1]
}
if port, hasName := NamePortMap[dstPort]; hasName {
if port, hasName := NamePortMapTCP[dstPort]; hasName {
dstPort = port
}