From 50bb36f2ed449c116a74633a03a3763d0753b52b Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Tue, 24 Mar 2020 10:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=8E=B7=E5=8F=96ip=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/collector.yml | 2 +- etc/index.yml | 2 +- etc/judge.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/collector.yml b/etc/collector.yml index eb0e960b..8ba85351 100644 --- a/etc/collector.yml +++ b/etc/collector.yml @@ -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 diff --git a/etc/index.yml b/etc/index.yml index 2edebbdd..736a4e03 100644 --- a/etc/index.yml +++ b/etc/index.yml @@ -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 diff --git a/etc/judge.yml b/etc/judge.yml index a2035f0d..e86f7d39 100644 --- a/etc/judge.yml +++ b/etc/judge.yml @@ -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