@@ -321,7 +321,7 @@ public void init(String... args) {
321
321
"webSSL" , false );
322
322
allowOthers = SortedProperties .getBooleanProperty (prop ,
323
323
"webAllowOthers" , false );
324
- externalNames = SortedProperties .getStringProperty (prop , "webExternalNames" , null );
324
+ setExternalNames ( SortedProperties .getStringProperty (prop , "webExternalNames" , null ) );
325
325
setAdminPassword (SortedProperties .getStringProperty (prop , "webAdminPassword" , null ));
326
326
commandHistoryString = prop .getProperty (COMMAND_HISTORY );
327
327
for (int i = 0 ; args != null && i < args .length ; i ++) {
@@ -333,7 +333,7 @@ public void init(String... args) {
333
333
} else if (Tool .isOption (a , "-webAllowOthers" )) {
334
334
allowOthers = true ;
335
335
} else if (Tool .isOption (a , "-webExternalNames" )) {
336
- externalNames = args [++i ];
336
+ setExternalNames ( args [++i ]) ;
337
337
} else if (Tool .isOption (a , "-webDaemon" )) {
338
338
isDaemon = true ;
339
339
} else if (Tool .isOption (a , "-baseDir" )) {
@@ -392,7 +392,7 @@ public String getHost() {
392
392
393
393
private void updateURL () {
394
394
try {
395
- host = NetUtils .getLocalAddress ();
395
+ host = StringUtils . toLowerEnglish ( NetUtils .getLocalAddress () );
396
396
StringBuilder builder = new StringBuilder (ssl ? "https" : "http" ).append ("://" )
397
397
.append (host ).append (':' ).append (port );
398
398
if (key != null && serverSocket != null ) {
@@ -568,7 +568,7 @@ public boolean getAllowOthers() {
568
568
}
569
569
570
570
void setExternalNames (String externalNames ) {
571
- this .externalNames = externalNames ;
571
+ this .externalNames = externalNames != null ? StringUtils . toLowerEnglish ( externalNames ) : null ;
572
572
}
573
573
574
574
String getExternalNames () {
0 commit comments