This commit is contained in:
midoks
2018-12-09 18:58:41 +08:00
parent d51de312ac
commit 5b87572bff
4 changed files with 65 additions and 3 deletions
+1
View File
@@ -151,6 +151,7 @@ def saveConf():
confFile = getConf()
try:
args = getArgs()
print args
content = public.readFile(confFile)
content = re.sub('IP=.+', 'IP=' + args['ip'], content)
content = re.sub('PORT=\d+', 'PORT=' + args['port'], content)