• Avery Pennarun's avatar
    Smarter listenport selection. · 9f514d7a
    Avery Pennarun authored
    Now if we aren't given an explicit port, we always initiate the port search
    at 12300 and count upward looking for an available port.
    
    Normally the kernel will assign us a random port, but that's not ideal
    in our case because we'd like to use the same port numbers whenever
    possible; that avoids piling up crap inside iptables in the (hopefully
    unlikely) event that we die without cleaning up correctly.
    9f514d7a
client.py 2.64 KB