From a813e5187e9e13fa68df70e8c5a50577b096fe86 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 14:16:16 +0200 Subject: [PATCH] Fixed substring menipulation being wrong --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index d186388..52307fe 100755 --- a/daemon.py +++ b/daemon.py @@ -141,7 +141,7 @@ def updateNsData(zone): def adaptZoneName(zone): if config['zone']['public-suffix'] != "" and zone.endswith(config['zone']['public-suffix']): - adaptedZone = zone[:len(config['zone']['public-suffix'])] + adaptedZone = zone[:-len(config['zone']['public-suffix'])] return adaptedZone return zone