mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix broken network.py
This commit is contained in:
parent
76770f3326
commit
d879d18dcd
1 changed files with 2 additions and 2 deletions
|
@ -1481,8 +1481,8 @@ def _netlink_tool_remote_on(port, which_end):
|
|||
elif 'ESTAB' not in line:
|
||||
continue
|
||||
chunks = line.split()
|
||||
local_host, local_port = chunks[3].split(':')
|
||||
remote_host, remote_port = chunks[4].split(':')
|
||||
local_host, local_port = chunks[3].split(':', 1)
|
||||
remote_host, remote_port = chunks[4].split(':', 1)
|
||||
|
||||
if which_end == 'remote_port' and int(remote_port) != port:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue