Skip to content

Commit 87264e2

Browse files
committed
Bind to any (IPv4) address
1 parent 1487976 commit 87264e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netflowcollector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def pass_netflow_data(netflow_port, named_pipe_filename):
2727
# endless loop - read netflow packets from UDP port and write them to named pipe:
2828
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
29-
server_address = ('localhost', netflow_port,)
29+
server_address = ('', netflow_port,) # '' binds to any IPv4 address (not IPv6!)
3030
log.debug('starting up on {} port {}'.format(*server_address))
3131
sock.bind(server_address)
3232

0 commit comments

Comments
 (0)