- wxString SAURLPrincipals = ServerAddressURL + wxT("principals/");\r
- wxString SAURLPrincipalURL = ServerAddress + wxT(":") + wxString::Format(wxT("%i"), ServerPort);\r
- wxString SAURLAddressURL = ServerAddress + wxT(":") + wxString::Format(wxT("%i"), ServerPort);\r
+ wxString SAURLPrincipals;\r
+ wxString SAURLPrincipalURL;\r
+ wxString SAURLAddressURL;\r
+ \r
+ if (ServerSSL){\r
+ \r
+ SAURLPrincipals = ServerAddressSSL + wxT("principals/");\r
+ SAURLPrincipalURL = ServerAddressSSL;\r
+ SAURLAddressURL = ServerAddressSSL;\r
+ \r
+ } else {\r
+ \r
+ SAURLPrincipals = ServerAddressNormal + wxT("principals/");\r
+ SAURLPrincipalURL = ServerAddressNormal;\r
+ SAURLAddressURL = ServerAddressNormal;\r
+ \r
+ }\r
+ \r