mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fixed default value for IPv4
This commit is contained in:
parent
dfeb9e510d
commit
642090415c
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ do_pre_regen() {
|
|||
|
||||
###### IPV4 #######
|
||||
|
||||
ipv4=$(yunohost tools shell -c "from yunohost.utils.network import get_public_ips;print(get_public_ips(4)[0])")
|
||||
ipv4=$(yunohost tools shell -c "from yunohost.utils.network import get_public_ips;ips=get_public_ips(4);print(ips[0] if len(ips)>0 else '127.0.0.1')")
|
||||
|
||||
###### IPV6 #######
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue