rkonfj
|
180c7f940f
|
disco/udp: make relayprotocol works better
|
2025-05-31 11:25:51 +08:00 |
|
rkonfj
|
555a1412b9
|
disco: PeerUDPAddr -> Endpoint
|
2025-05-18 18:08:55 +08:00 |
|
rkonfj
|
ae63cdbe2d
|
disco: a minor fix
|
2025-05-06 18:45:20 +08:00 |
|
rkonfj
|
9957204ae2
|
disco: IPIgnored -> IsIgnoredLocalIP
|
2025-05-06 15:24:48 +08:00 |
|
rkonfj
|
d0248823ce
|
peermap: use X-Secret header to transmit the secret
|
2025-04-27 10:49:56 +08:00 |
|
rkonfj
|
5cb43cd29c
|
disco/udp: ignore packets from ip in the ignore list
|
2025-04-22 11:40:39 +08:00 |
|
rkonfj
|
eadb54377a
|
disco/ws: update DialPeermap func
|
2025-04-08 16:59:59 +08:00 |
|
rkonfj
|
eec462ca8a
|
disco: FileSecretStore -> SecretFile
|
2025-03-17 20:42:33 +08:00 |
|
rkonfj
|
a5e3eafbc0
|
peermap: add admin api
|
2025-03-15 18:18:51 +08:00 |
|
rkonfj
|
8da631d8c5
|
disco: add JSON tags to Error
|
2025-03-13 20:25:01 +08:00 |
|
rkonfj
|
a34f915aec
|
chore: upgrade go and mods version
|
2025-03-08 13:05:37 +08:00 |
|
rkonfj
|
434cdeeb30
|
disco: add nat type easy+ip6
|
2025-02-22 14:25:05 +08:00 |
|
rkonfj
|
dbbb237d26
|
disco/udp: add cache for func UDPConn.findPeerID
|
2025-02-14 17:02:45 +08:00 |
|
rkonfj
|
1817b334e7
|
disco/udp: stable order of slice returned by func PeerStore.Peers
|
2025-02-14 15:21:52 +08:00 |
|
rkonfj
|
5af777c44f
|
p2p: redetect NAT type after connecting to server
|
2025-02-07 10:37:30 +08:00 |
|
rkonfj
|
00feea3a5e
|
p2p: skip nodes with node.nr label when selecting relay peer
|
2025-02-06 17:21:16 +08:00 |
|
rkonfj
|
0e9b0a34b8
|
disco/ws: handle http 404 error
helps with issues of type #25
|
2025-01-05 18:52:47 +08:00 |
|
rkonfj
|
e9ee4094c7
|
disco/udp: graceful close
|
2024-12-29 20:02:20 +08:00 |
|
rkonfj
|
643c9d5ace
|
disco/udp: add context to func DetectNAT
|
2024-12-29 18:48:55 +08:00 |
|
rkonfj
|
52a1be55d1
|
pgcli/vpn: config struct add yaml tags
|
2024-12-29 18:27:14 +08:00 |
|
rkonfj
|
9b9d39dd14
|
disco/udp: Error -> Warn
|
2024-12-24 20:03:19 +08:00 |
|
rkonfj
|
42e8283a51
|
disco: add a result cache for peer ready check
|
2024-12-22 21:37:47 +08:00 |
|
rkonfj
|
7716d76b49
|
disco: func tryRecv should make a copy of the packet
|
2024-12-22 18:48:21 +08:00 |
|
rkonfj
|
32ef0f584a
|
disco: func IsCGN supports ipv6
|
2024-12-21 11:09:23 +08:00 |
|
rkonfj
|
d68ac0bab1
|
disco: add nat type ip4+ip6
|
2024-12-19 20:35:01 +08:00 |
|
rkonfj
|
8d543681d8
|
disco/ws: fix reconnecting too quickly
|
2024-12-12 19:47:42 +08:00 |
|
rkonfj
|
843064e735
|
p2p: add OnPeerLeave option
|
2024-11-30 16:40:37 +08:00 |
|
rkonfj
|
b01e7cd34e
|
disco: Peermap to Server
|
2024-11-25 21:19:38 +08:00 |
|
rkonfj
|
307e441fa1
|
disco/ws: no NAT address, no update
|
2024-11-25 20:44:06 +08:00 |
|
rkonfj
|
814eccaea3
|
disco/udp: fix upnp disabled
|
2024-11-21 20:09:20 +08:00 |
|
rkonfj
|
47451a2f8a
|
disco/udp: fix resource leak
|
2024-11-21 19:32:46 +08:00 |
|
rkonfj
|
daa2410e86
|
vpn: refactor some funcs
|
2024-11-19 19:37:11 +08:00 |
|
rkonfj
|
34826ecaf2
|
disco/udp: stash NAT event
|
2024-11-17 11:08:21 +08:00 |
|
rkonfj
|
835f63b245
|
disco/udp: do not panic
|
2024-11-14 21:22:15 +08:00 |
|
rkonfj
|
e3a35c0029
|
p2p: remove func Broadcast
|
2024-11-14 21:07:26 +08:00 |
|
rkonfj
|
c5c6188339
|
disco/udp: split stun and peerkeeper
|
2024-11-14 20:58:41 +08:00 |
|
rkonfj
|
0b60449414
|
disco/udp: upnp external ip maybe unspecified
|
2024-11-14 20:38:58 +08:00 |
|
rkonfj
|
d8996788b4
|
disco/udp: change log level
|
2024-11-08 20:30:47 +08:00 |
|
rkonfj
|
92623e51a6
|
p2p: do not panic
|
2024-11-07 20:49:16 +08:00 |
|
rkonfj
|
ce55311416
|
p2p: add peer relay transport mode
|
2024-11-04 22:05:33 +08:00 |
|
rkonfj
|
cc75c3ff4d
|
p2p: update local peermap
|
2024-11-04 21:54:06 +08:00 |
|
rkonfj
|
c251886763
|
disco/tp/udp: stop easy challenges for private ip on hard-nat side
|
2024-11-04 19:53:37 +08:00 |
|
rkonfj
|
386f39d5a0
|
p2p: add func SetTransportMode
|
2024-11-03 19:23:32 +08:00 |
|
rkonfj
|
b88b713a46
|
add some debug logs
|
2024-10-31 20:23:23 +08:00 |
|
rkonfj
|
b8b9c4aa02
|
p2p: send to relay when udpConn is inactive
|
2024-10-29 20:54:38 +08:00 |
|
rkonfj
|
27490c7654
|
disco/tp/udp: fix missing to_hard/to_easy event
|
2024-10-29 20:30:44 +08:00 |
|
rkonfj
|
dfd114d5d0
|
transfer project to SIGCN organization
|
2024-09-27 11:20:17 +08:00 |
|
rkonfj
|
5f638d68ba
|
disco: add UPDATE_NAT_INFO control code
|
2024-09-04 20:50:55 +08:00 |
|
rkonfj
|
ed02b33df0
|
disco: default port scan offset to -1000
|
2024-08-26 21:58:36 +08:00 |
|
rkonfj
|
f1d0269755
|
disco: better logging
|
2024-08-24 08:34:18 +08:00 |
|