fix for ipv6 setting (#59)

This commit is contained in:
ingvar1995 2018-02-05 23:32:33 +03:00
parent 9b5d768819
commit 98cc288bcd
2 changed files with 3 additions and 1 deletions

View File

@ -1438,6 +1438,8 @@ def tox_factory(data=None, settings=None):
if settings is None:
settings = Settings.get_default_settings()
tox_options = Tox.options_new()
# see <https://github.com/irungentoo/toxcore/blob/master/toxcore/tox.h> lines 393-401
tox_options.contents.ipv6_enabled = settings['ipv6_enabled']
tox_options.contents.udp_enabled = settings['udp_enabled']
tox_options.contents.proxy_type = settings['proxy_type']
tox_options.contents.proxy_host = bytes(settings['proxy_host'], 'UTF-8')

View File

@ -104,7 +104,7 @@ class Settings(dict, Singleton):
"""
return {
'theme': 'dark',
'ipv6_enabled': True,
'ipv6_enabled': False,
'udp_enabled': True,
'proxy_type': 0,
'proxy_host': '127.0.0.1',