Commit Graph

27 Commits

Author SHA1 Message Date
vyzo ce8aa43832 fix typo 2018-05-12 08:20:04 +03:00
vyzo 81477e5d53 improve NATStatusUknown docstring 2018-05-11 15:50:50 +03:00
vyzo 7ea67c6344 improve docstring for NewAutoNAT 2018-05-11 09:46:16 +03:00
vyzo 889081eeba docstrings and another mutex hat. 2018-05-11 09:40:36 +03:00
vyzo 55cd73a0d8 mutex hat 2018-05-11 08:13:53 +03:00
vyzo 9c5851a806 simplify autonat client itnerface 2018-05-09 12:16:16 +03:00
vyzo bdb5781450 don't throw away read errors; log them. 2018-05-09 11:53:15 +03:00
vyzo 7f690dcc68 refactor getPeers for locked scope 2018-05-09 11:47:16 +03:00
vyzo f36100a1f9 named magic number incantations 2018-05-09 11:37:49 +03:00
vyzo 003e697e6a variables for background delays 2018-05-08 16:17:05 +03:00
vyzo 2584bc51ff AutoNATState is AmbientAutoNAT 2018-05-08 16:11:33 +03:00
vyzo da3f7b5527 bump initial autodiscovery delay to 15s 2018-05-07 12:25:35 +03:00
vyzo 1c0355d3e8 typed NATStatus constants 2018-05-07 12:08:13 +03:00
vyzo ea2e287572 no need to select; it's a one shot sync 2018-05-07 12:03:21 +03:00
vyzo 8af7aacd7a add localhost to private addr ranges 2018-05-06 18:33:21 +03:00
vyzo e9f8bf996a don't try to dial private network addresses
addresses service TODO
2018-05-06 17:47:53 +03:00
vyzo bd18d4edd9 add network notifee 2018-05-06 15:39:24 +03:00
vyzo 82a7aa9c0f add TODO in service about skipping private network addresses 2018-05-06 13:24:16 +03:00
vyzo edf41b43f1 fix autonat peer tracking
connection state can be determined through the network interface on demand
2018-05-06 13:13:19 +03:00
vyzo ae9117749d we only track autonat peers
fix bug introduced in last commit
2018-05-06 12:02:54 +03:00
vyzo 7fc002407f don't delete autonat peers on disconnect, just mark them as disconnected 2018-05-06 12:00:17 +03:00
vyzo a713affd39 remove left-over design notes 2018-05-06 11:28:24 +03:00
vyzo 645e280349 NAT autodetection 2018-05-06 11:22:32 +03:00
vyzo 6d61b523ff service implementation 2018-05-06 09:49:02 +03:00
vyzo 76d49e17f1 add E_BAD_REQUEST to protobuf 2018-05-06 09:45:30 +03:00
vyzo 1ad785cc02 basic client 2018-05-05 16:45:58 +03:00
vyzo f0b7fc9cf3 protobuf 2018-05-05 16:12:39 +03:00