Skip to content

Commit b914a9e

Browse files
committed
fix bug #461
1 parent a3337fc commit b914a9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sbin/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ source ~/.bash_profile
2020

2121
export local_host="`hostname --fqdn`"
2222

23-
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
23+
ipaddr=$(hostname -i)
2424

2525
function isLocal(){
2626
if [ "$1" == "127.0.0.1" ];then

web/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dss_port="8088"
55
linkis_url="http://localhost:20401"
66

77
#dss ip address
8-
dss_ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
8+
dss_ipaddr=$(hostname -i)

0 commit comments

Comments
 (0)