[fix] hmac-sha512 key can have space in them because why the fuck not

This commit is contained in:
Laurent Peuch 2017-09-21 05:52:59 +02:00
parent 2c73dd1a2f
commit f5f813badb

View file

@ -106,7 +106,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None
key_file = glob.glob('/etc/yunohost/dyndns/*.key')[0]
with open(key_file) as f:
key = f.readline().strip().split(' ')[-1]
key = f.readline().strip().split(' ', 6)[-1]
# Send subscription
try: