another ipaddress fix
This commit is contained in:
parent
71f077b869
commit
9e8b4b097f
@ -10,6 +10,7 @@ import grp
|
|||||||
import logging
|
import logging
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
import pyagentx3
|
import pyagentx3
|
||||||
|
import ipaddress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -55,9 +56,9 @@ LOCAL_SERVER_KEYS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
PEER_KEYS = [
|
PEER_KEYS = [
|
||||||
['srcadr', pyagentx3.TYPE_OCTETSTRING, pass_value],
|
['srcadr', pyagentx3.TYPE_IPADDRESS, ipaddress.ip_address],
|
||||||
['srcport', pyagentx3.TYPE_INTEGER, pass_value],
|
['srcport', pyagentx3.TYPE_INTEGER, pass_value],
|
||||||
['dstadr', pyagentx3.TYPE_OCTETSTRING, pass_value],
|
['dstadr', pyagentx3.TYPE_IPADDRESS, ipaddress.ip_address],
|
||||||
['dstport', pyagentx3.TYPE_INTEGER, pass_value],
|
['dstport', pyagentx3.TYPE_INTEGER, pass_value],
|
||||||
['leap', pyagentx3.TYPE_INTEGER, pass_value],
|
['leap', pyagentx3.TYPE_INTEGER, pass_value],
|
||||||
['hmode', pyagentx3.TYPE_INTEGER, pass_value],
|
['hmode', pyagentx3.TYPE_INTEGER, pass_value],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user