Fixed substring menipulation being wrong
This commit is contained in:
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…
x
Reference in New Issue
Block a user