mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
This get_public_ips isn't really relevant anymore
This commit is contained in:
parent
e80f3a5a55
commit
f5b5edb3bb
2 changed files with 3 additions and 10 deletions
|
@ -40,7 +40,7 @@ from moulinette.utils.filesystem import read_file, write_to_file, rm
|
|||
from moulinette.utils.network import download_json
|
||||
|
||||
from yunohost.domain import _get_maindomain, _build_dns_conf
|
||||
from yunohost.utils.network import get_public_ips
|
||||
from yunohost.utils.network import get_public_ip
|
||||
|
||||
logger = getActionLogger('yunohost.dyndns')
|
||||
|
||||
|
@ -194,7 +194,8 @@ def dyndns_update(dyn_host="dyndns.yunohost.org", domain=None, key=None,
|
|||
old_ipv6 = read_file(OLD_IPV6_FILE).rstrip()
|
||||
|
||||
# Get current IPv4 and IPv6
|
||||
(ipv4_, ipv6_) = get_public_ips()
|
||||
ipv4_ = get_public_ip()
|
||||
ipv6_ = get_public_ip(6)
|
||||
|
||||
if ipv4 is None:
|
||||
ipv4 = ipv4_
|
||||
|
|
|
@ -38,11 +38,3 @@ def get_public_ip(protocol=4):
|
|||
except IOError:
|
||||
return None
|
||||
|
||||
|
||||
def get_public_ips():
|
||||
|
||||
ipv4 = get_public_ip()
|
||||
ipv6 = get_public_ip(6)
|
||||
|
||||
return (ipv4, ipv6)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue