Skip to content

Commit

Permalink
Strip possible [] on IPv6 addresses returned by ss execution
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh committed Jan 10, 2020
1 parent f89a3f4 commit 1f9413b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/utils/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ def _netlink_tool_remote_on(port, which_end):
chunks = line.split()
remote_host, remote_port = chunks[4].rsplit(':', 1)

remotes.add(remote_host)
remotes.add(remote_host.strip("[]"))

if valid is False:
remotes = None
Expand Down

0 comments on commit 1f9413b

Please sign in to comment.