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:
Cort Buffington 2015-05-21 09:45:24 -05:00
parent 679038face
commit e2f596f311
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ try:
})
if not NETWORK[section]['LOCAL']['MASTER_PEER']:
NETWORK[section]['MASTER'].update({
'IP': config.get(section, 'MASTER_IP'),
'IP': gethostbyname(config.get(section, 'MASTER_IP')),
'PORT': config.getint(section, 'MASTER_PORT')
})