• Marten Seemann's avatar
    prevent dialing addresses that we're listening on · 88c64b72
    Marten Seemann authored
    It's impossible to run two nodes on the same IP:port, so we know for
    sure that any dial to an address that we're listening on will fail (as
    the peer IDs won't match).
    In practice, this will be most useful for preventing dials to localhost
    for nodes that are listening on the default port.
    88c64b72
swarm_dial.go 17.5 KB