From 8f3c0715cb4263fe90d468bb0326b047292f3f4a Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 19 Feb 2022 19:05:28 +0000 Subject: [PATCH] Remove gethostbyname from ALLSTAR config --- bridge_master.py | 7 +++++++ config.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index c9e7280..7e17a7e 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -2351,6 +2351,13 @@ class routerHBP(HBSYSTEM): self.STATUS[_slot]['_stopTgAnnounce'] = True self.STATUS[_slot]['_allStarMode'] = True reactor.callLater(30,resetallStarMode) + elif not CONFIG['ALLSTAR']['ENABLED'] and _int_dst_id == 8: + logger.info('(%s) Reflector: TG 8 AllStar not enabled"', self._system) + _say.append(words[_lang]['busy']) + _say.append(words[_lang]['silence']) + self.STATUS[_slot]['_stopTgAnnounce'] = True + + #If disconnection called if _int_dst_id == 4000: diff --git a/config.py b/config.py index f0ac779..4444466 100755 --- a/config.py +++ b/config.py @@ -200,7 +200,7 @@ def build_config(_config_file): 'ENABLED': config.getboolean(section, 'ENABLED'), 'USER': config.get(section, 'USER'), 'PASS': config.get(section, 'PASS'), - 'SERVER': gethostbyname(config.get(section, 'SERVER')), + 'SERVER': config.get(section, 'SERVER'), 'PORT': config.getint(section,'PORT'), 'NODE' : config.getint(section,'NODE') })