charlestolley / python-snmp

A user-friendly SNMP library
MIT License
15 stars 3 forks source link

Enable non-standard ports #2

Closed g2pbvHpo closed 4 years ago

g2pbvHpo commented 4 years ago

Corrects the port variable in a couple of places to allow non-standard ports to work correctly. Before this change the replies are ignored as they are compared to the PORT constant instead of the port variable, and then the retry is sent to the PORT constant instead of the port variable, effectively blocking any attempts to use non-standard ports.