Skip to content

Commit

Permalink
ui: added backward compatibility with old protobuf package
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed Oct 19, 2020
1 parent 0921ca4 commit 3f3e2d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/opensnitch/service.py
Expand Up @@ -248,7 +248,16 @@ def _get_user_id(self, uid):
return pw_name

def _get_peer(self, peer):
"""
server -> client
127.0.0.1:50051 -> ipv4:127.0.0.1:52032
[::]:50051 -> ipv6:[::1]:59680
0.0.0.0:50051 -> ipv6:[::1]:59654
"""
p = peer.split(":")
# WA for backward compatibility
if p[0] == "unix" and p[1] == "":
p[1] = "local"
return p[0], p[1]

def _delete_node(self, peer):
Expand Down

0 comments on commit 3f3e2d6

Please sign in to comment.