Skip to content

Commit

Permalink
Issue 109 proto unbound local (#110)
Browse files Browse the repository at this point in the history
* Rename `proto` to `protocol` closes #109
* Version increment for #109
  • Loading branch information
strictlymike authored Feb 6, 2019
1 parent 011b6d4 commit 830e7db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.4.3
-------------
* Fixed unbound `proto` variable error in Windows PyDivert error case

Version 1.4.2
-------------
* Updated contact information
Expand Down
4 changes: 2 additions & 2 deletions fakenet/diverters/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def divert_thread(self):
if pkt.proto:
protocol = pkt.proto
elif pkt.is_icmp:
proto = 'ICMP'
protocol = 'ICMP'

self.logger.error('ERROR: Failed to send %s %s %s packet',
self.pktDirectionStr(pkt),
self.pktInterfaceStr(pkt), proto)
self.pktInterfaceStr(pkt), protocol)
self.logger.error(' %s' % (pkt.hdrToStr()))
self.logger.error(' %s', e)

Expand Down
2 changes: 1 addition & 1 deletion fakenet/fakenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def main():
| | / ____ \| . \| |____| |\ | |____ | | | |\ | |__| |
|_|/_/ \_\_|\_\______|_| \_|______| |_| |_| \_|\_____|
Version 1.4.2
Version 1.4.3
_____________________________________________________________
Developed by FLARE Team
_____________________________________________________________
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='FakeNet NG',
version='1.4.2',
version='1.4.3',
description="",
long_description="",
author="FireEye FLARE Team with credit to Peter Kacherginsky as the original developer",
Expand Down

0 comments on commit 830e7db

Please sign in to comment.