Fixed substring menipulation being wrong

master
Ruakij 3 years ago
parent 9406cf247d
commit a813e5187e

@ -141,7 +141,7 @@ def updateNsData(zone):
def adaptZoneName(zone): def adaptZoneName(zone):
if config['zone']['public-suffix'] != "" and zone.endswith(config['zone']['public-suffix']): 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 adaptedZone
return zone return zone

Loading…
Cancel
Save