DNS resolution
use gethostbyname when we parse the config, once, rather than leave it to twisted to do when we send packets.
This commit is contained in:
parent
679038face
commit
e2f596f311
@ -148,7 +148,7 @@ try:
|
|||||||
})
|
})
|
||||||
if not NETWORK[section]['LOCAL']['MASTER_PEER']:
|
if not NETWORK[section]['LOCAL']['MASTER_PEER']:
|
||||||
NETWORK[section]['MASTER'].update({
|
NETWORK[section]['MASTER'].update({
|
||||||
'IP': config.get(section, 'MASTER_IP'),
|
'IP': gethostbyname(config.get(section, 'MASTER_IP')),
|
||||||
'PORT': config.getint(section, 'MASTER_PORT')
|
'PORT': config.getint(section, 'MASTER_PORT')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user