mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -113,7 +113,7 @@ def contentReplace(content):
|
||||
|
||||
# 网络接口
|
||||
ethx = mw.execShell("route -n | grep ^0.0.0.0 | awk '{print $8}'")
|
||||
if data[1]!='':
|
||||
if ethx[1]!='':
|
||||
# 未找到
|
||||
content = content.replace('{$ETH_XX}', 'eth1')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user