[Modify] Polish it

This commit is contained in:
sta 2019-01-15 21:20:46 +09:00
parent c8904fd80c
commit 84cce50b57

View File

@ -744,8 +744,7 @@ namespace WebSocketSharp.Net
+ (secure ? "s" : String.Empty); + (secure ? "s" : String.Empty);
} }
var colon = host.IndexOf (':'); if (host.IndexOf (':') == -1) {
if (colon == -1) {
host = String.Format ( host = String.Format (
"{0}:{1}", host, schm == "http" || schm == "ws" ? 80 : 443 "{0}:{1}", host, schm == "http" || schm == "ws" ? 80 : 443
); );