1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-08 12:00:36 +08:00

AUTH-2394 fixed header for websockets. Added TCP alias

This commit is contained in:
Dalton
2020-03-23 10:22:58 -05:00
parent 32df01a9da
commit a368fbbe9b
3 changed files with 18 additions and 3 deletions

View File

@@ -602,6 +602,8 @@ func hostnameFromURI(uri string) string {
return addPortIfMissing(u, 22)
case "rdp":
return addPortIfMissing(u, 3389)
case "tcp":
return addPortIfMissing(u, 7864) // just a random port since there isn't a default in this case
}
return ""
}