mirror of
https://gitee.com/lionsoul/jcseg.git
synced 2024-11-29 18:38:30 +08:00
fix the bug for host auto setting
This commit is contained in:
parent
a7626b8922
commit
ef86a8a415
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user