From e2f596f31150a4f1a501ae52471e3051fa65f2db Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 21 May 2015 09:45:24 -0500 Subject: [PATCH] DNS resolution use gethostbyname when we parse the config, once, rather than leave it to twisted to do when we send packets. --- dmrlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmrlink.py b/dmrlink.py index 632855a..8cc64ad 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -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') })