Commit Graph

1477 Commits

Author SHA1 Message Date
06ceac65de - Fix reconnect guard
- Avoid double client creation
2024-06-21 00:55:07 +02:00
6801dcb3f6 Fallback to relay conn 2024-06-20 18:17:30 +02:00
c7db2c0524 Moc signal message support 2024-06-19 18:40:49 +02:00
4f890ff712 Typo fix 2024-06-19 18:17:52 +02:00
f7e6aa9b8f Change logging logic 2024-06-19 18:16:43 +02:00
81f2330d49 Fix remote address in ws client 2024-06-19 18:16:23 +02:00
0261e15aad Extend the cmd with argument handling
- add cobra to relay server
- add logger instance for handshaker
2024-06-19 17:40:16 +02:00
11de2ec42e Fix open connection 2024-06-19 12:18:58 +02:00
4d2a25b728 Code cleaning 2024-06-19 11:53:21 +02:00
2f32e0d8cf Fix chicken-egg problem in the ice agent creation 2024-06-19 11:28:01 +02:00
48310ef99c Fix engine test 2024-06-19 09:59:01 +02:00
24f71bc68a Fix and extend test 2024-06-19 09:40:43 +02:00
e26e2c3a75 Add conn status handling and protect agent 2024-06-18 17:40:37 +02:00
a5e664d83d Code cleaning 2024-06-18 11:27:18 +02:00
d8ab3c1632 Call peer.Open from engine 2024-06-18 11:23:39 +02:00
63b4041e9c Rename connector to worker 2024-06-18 11:22:40 +02:00
f7d8d03e55 Fix timers 2024-06-18 11:20:01 +02:00
5b86a7f3f2 Fix relay mode evaulation 2024-06-18 11:10:55 +02:00
deb8203f06 fix circle import 2024-06-17 18:02:52 +02:00
e407fe02c5 Separate lifecircle of handshake, ice, relay connections
- fix Stun, Turn address update thread safety issue
- move conn worker login into peer package
2024-06-17 17:52:22 +02:00
a7760bf0a7 Configurable relay address with env variable 2024-06-14 15:43:18 +02:00
64f949abbb Integrate relay into peer conn
- extend mgm with relay address
- extend signaling with remote peer's relay address
- start setup relay connection before engine start
2024-06-14 14:40:31 +02:00
38f2a59d1b Add comment 2024-06-12 10:56:21 +02:00
9504012920 Set the proper buffer size in the client code 2024-06-09 21:10:57 +02:00
5e93d117cf Use buf pool
- eliminate reader function generation
- fix write to closed channel panic
2024-06-09 20:33:35 +02:00
8c70b7d7ff Replace ws lib on client side 2024-06-09 12:41:52 +02:00
ed8def4d9b Protect ws writing in Gorilla ws 2024-06-07 16:07:35 +02:00
1e115e3893 Merge branch 'main' into feature/relay 2024-06-06 13:38:40 +02:00
deffe037aa Respect env for debug and routes sub commands (#2026) 2024-06-06 10:59:10 +02:00
fed9e587af Add close message type 2024-06-05 19:49:30 +02:00
983d7bafbe Remove unused variables from peer conn (#2074)
Remove unused variables from peer conn
2024-06-04 17:04:50 +02:00
a40d4d2f32 - add comments
- avoid double closing messages
- add cleanup routine for relay manager
2024-06-04 14:40:35 +02:00
4da29451d0 Add missing openid scope when requesting JWT token (#2089)
According to the Zitadel documentation, `openid` scope is required
when requesting JWT tokens.

Apparently Zitadel was accepting requests without it until very
recently. Now lack thereof causes 400 Bad Requests which makes it
impossible to authenticate to the Netbird dashboard.

https://zitadel.com/docs/guides/integrate/service-users/client-credentials#2-authenticating-a-service-user-and-request-a-token
2024-06-04 10:46:24 +02:00
15818b72c6 Add alternative ws server implementation 2024-06-03 21:38:37 +02:00
0556dc1860 Avoid nil pointer exception in test in case of err 2024-06-03 21:36:46 +02:00
2b369cd28f Add quic transporter 2024-06-03 20:17:43 +02:00
9d44a476c6 Fix double unlock in client.go 2024-06-03 20:14:39 +02:00
9b3449753e Ignore candidates whose IP falls into a routed network. (#2084)
This will prevent peer connections via other peers.
2024-06-03 17:31:37 +02:00
456629811b Prevent using expired ctx when sending metrics (#2088) 2024-06-03 12:41:15 +02:00
57ddb5f262 Add comment 2024-06-03 11:22:16 +02:00
4ced07dd8d Fix close conn threading issue 2024-06-03 01:37:56 +02:00
3430b81622 Add relay server tracking 2024-06-01 11:48:15 +02:00
fd4ad15c83 Move reconnection logic to separated struct 2024-06-01 11:25:00 +02:00
c311d0d19e Fill the UI version info in system meta on Android (#2077) 2024-05-31 17:26:56 +02:00
521f7dd39f Improve login performance (#2061) 2024-05-31 16:41:12 +02:00
f9ec0a9a2e Fix PKCE auth html (#2079) 2024-05-30 17:22:58 +02:00
012235ff12 Add FindExistingPostureCheck (#2075) 2024-05-30 15:22:42 +02:00
4ff069a102 Support multiple server 2024-05-29 16:40:26 +02:00
7cc3964a4d Use mux for http server
Without it can not start multiple http
server instances for unit tests
2024-05-29 16:11:58 +02:00
6d627f1923 Code cleaning 2024-05-28 01:27:53 +02:00