erm. use the .str attr. otherwise we get the class name. duh.

This commit is contained in:
brent s. 2020-05-15 01:51:34 -04:00
parent 58e495bf41
commit a8475d9001
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class TunnelBroker(object):
logger.debug('Requesting IP update at provider.')
req = requests.get(self.url_api,
params = {'hostname': str(self.tun.id),
'myip': str(self.my_ip)},
'myip': self.my_ip.str},
auth = auth_handler)
if not req.ok:
logger.error('Could not update IP at provider. Request returned {0}.'.format(req.status_code))