Rename config FS_IP to FS_HOSTNAME

This commit is contained in:
Zaid Abdulla committed 2017-03-09 20:50:39 -08:00
1 parent 0014af5bd0
commit 7cfafdcd74
2 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -43,7 +43,7 @@ options = {
FS_PORT : {type : 'int', default : 7567},
FS_INTERFACE : {type : 'string', default : '0.0.0.0'},
FS_SSL : {type : 'bool', default : false},
FS_IP : {type : 'string', default : '192.168.0.1'},
FS_HOSTNAME : {type : 'string', default : 'acs.example.com'},
FS_LOG_FILE : {type: 'path', default : ''},
FS_ACCESS_LOG_FILE : {type : 'path', default : ''},
@@ -98,6 +98,9 @@ setConfig = (name, value, commandLineArgument) ->
if name in ['XML_PARSE_RECOVER', 'xml-parse-recover']
setConfig('XML_RECOVER', value)
if name in ['FS_IP', 'fs-ip']
setConfig('FS_HOSTNAME', value)
cast = (val, type) ->
switch type
when 'int'