1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-08 14:38:15 -05:00

port fixed for setup

This commit is contained in:
Kyle Spearrin 2017-11-08 20:28:37 -05:00
parent daefe0d66b
commit 000fbe8a3d

View File

@ -97,9 +97,9 @@ namespace Bit.Setup
if(ssl) if(ssl)
{ {
Console.Write("(!) HTTPS port: "); Console.Write("(!) HTTPS port: ");
if(!int.TryParse(Console.ReadLine().ToLowerInvariant().Trim(), out httpsPort)) if(int.TryParse(Console.ReadLine().ToLowerInvariant().Trim(), out httpsPort))
{ {
if(httpPort != 443) if(httpsPort != 443)
{ {
url += (":" + httpsPort); url += (":" + httpsPort);
} }
@ -107,7 +107,7 @@ namespace Bit.Setup
else else
{ {
Console.WriteLine("Invalid HTTPS port."); Console.WriteLine("Invalid HTTPS port.");
httpPort = default(int); httpPort = httpsPort = default(int);
} }
} }
else if(httpPort != 80) else if(httpPort != 80)