Skip to content

Commit

Permalink
update/traffic: fix IPv6 translation
Browse files Browse the repository at this point in the history
Fix the following configuration parsing error:

  configuration | error message: illegal IP address string passed to inet_pton

(cherry picked from commit 26c612e)
  • Loading branch information
rzalamena committed Dec 3, 2020
1 parent 112e8ec commit 76f5f7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def __init__(self, ip, asn, community=None):
self,
community
if community is not None
else pack("!BB16sH", 0x00, 0x02, socket.inet_aton(socket.AF_INET6, ip), asn),
else pack("!BB16sH", 0x00, 0x02, socket.inet_pton(socket.AF_INET6, ip), asn),
)

def __str__(self):
Expand Down

0 comments on commit 76f5f7e

Please sign in to comment.