fix the bug for host auto setting

This commit is contained in:
lionsoul 2018-09-17 22:49:38 +08:00
parent a7626b8922
commit ef86a8a415

View File

@ -153,7 +153,7 @@ public class JcsegServer
if ( globalConfig.has("server_config") ) {
JSONObject serverSetting = globalConfig.getJSONObject("server_config");
if ( serverSetting.has("host") ) {
config.setPort(serverSetting.getInt("host"));
config.setHost(serverSetting.getString("host"));
}
if ( serverSetting.has("port") ) {
config.setPort(serverSetting.getInt("port"));