fix port inter
This commit is contained in:
parent
50f13825c2
commit
18cbc4c0c4
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ def check_port_conflict(port, show_logging=True):
|
||||||
db = mmap.mmap(services_file.fileno(), 0, access=mmap.ACCESS_READ)
|
db = mmap.mmap(services_file.fileno(), 0, access=mmap.ACCESS_READ)
|
||||||
for protocal in ['tcp','udp']:
|
for protocal in ['tcp','udp']:
|
||||||
|
|
||||||
sub_index = db.find('%d/%s'% (port, protocal))
|
sub_index = db.find('%s/%s'% (port, protocal))
|
||||||
if sub_index < 0:
|
if sub_index < 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue