更改获取ip的方式

This commit is contained in:
Ulric Qin 2020-03-24 10:32:53 +08:00
parent e12877c3fb
commit 50bb36f2ed
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ logger:
keepHours: 2
identity:
specify: ""
shell: hostname -i
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
sys:
# timeout in ms
# interval in second

View File

@ -4,4 +4,4 @@ logger:
keepHours: 2
identity:
specify: ""
shell: hostname -i
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1

View File

@ -14,7 +14,7 @@ redis:
identity:
specify: ""
shell: hostname -i
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
logger:
dir: logs/judge