Oleksandr Redko
c2454e7114
refactor: fix modernize lint issues ( #5215 )
2026-03-07 23:10:19 +08:00
fatedier
c70ceff370
fix: three high-severity bugs across nathole, proxy, and udp modules ( #5214 )
...
- pkg/nathole: add RLock when reading clientCfgs map in PreCheck path
to prevent concurrent map read/write crash
- server/proxy: fix error variable shadowing in GetWorkConnFromPool
that could return a closed connection with nil error
- pkg/util/net: check ListenUDP error before spawning goroutines
and assign readConn to struct field so Close() works correctly
2026-03-07 13:36:02 +08:00
fatedier
e9f7a1a9f2
pkg: use modern Go stdlib functions to simplify code ( #5209 )
...
- strings.CutPrefix instead of HasPrefix+TrimPrefix (naming, legacy)
- slices.Contains instead of manual loop (plugin/server)
- min/max builtins instead of manual comparisons (nathole)
2026-03-06 22:14:46 +08:00
fatedier
8f633fe363
fix: return buffers to pool on error paths to reduce GC pressure ( #5203 )
...
- pkg/nathole/nathole.go: add pool.PutBuf(buf) on ReadFromUDP error
and DecodeMessageInto error paths in waitDetectMessage
- pkg/proto/udp/udp.go: add defer pool.PutBuf(buf) in writerFn to
ensure buffer is returned when the goroutine exits
2026-03-06 15:55:22 +08:00
fatedier
01997deb98
add persistent proxy/visitor store with CRUD API and web UI ( #5188 )
2026-03-02 01:09:59 +08:00
fatedier
80d3f332e1
xtcp: add configuration to disable assisted addresses in NAT traversal ( #4951 )
2025-08-25 15:52:52 +08:00
Guiwoo Park
0358113948
samber lo version up ( #4569 )
2024-12-02 11:56:52 +08:00
fatedier
f7a06cbe61
use go1.23 ( #4495 )
2024-10-17 17:22:41 +08:00
fatedier
b36f3834eb
use math/rand/v2 ( #4020 )
2024-03-20 15:48:31 +08:00
fatedier
43ba7bd338
use new log package ( #4054 )
2024-03-12 13:58:53 +08:00
fatedier
3e0c78233a
use std slices package ( #4008 )
2024-02-20 12:01:41 +08:00
fatedier
b6361fb143
use go built-in min & max functions to replace lo.Min and lo.Max ( #4007 )
2024-02-19 21:27:56 +08:00
fatedier
adb04e81e7
bump pion/stun to v2 ( #4006 )
2024-02-19 21:13:20 +08:00
fatedier
46ff40543a
update github actions ( #3538 )
2023-07-21 10:30:46 +08:00
fatedier
685d7618f3
change default value of tls_enable and disable_custom_tls_first_byte ( #3494 )
2023-06-26 00:10:27 +08:00
fatedier
15a245766e
fix the issue of duplicate xtcp proxies will cause the previous proxy to become ineffective ( #3489 )
2023-06-16 00:41:06 +08:00
fatedier
e1cef053be
server/proxy: simplify the code ( #3488 )
2023-06-16 00:14:19 +08:00
fatedier
de85c9455a
stcp, xtcp, sudp: support allow_users and specified server user ( #3472 )
2023-06-02 16:06:29 +08:00
fatedier
c7a0cfc66d
xtcp: when connection timeout occurs, support fallback to STCP ( #3460 )
2023-05-30 10:55:00 +08:00
fatedier
4915852b9c
use constant time comparison ( #3452 )
2023-05-29 00:27:27 +08:00
fatedier
c71efde303
refactor the code related to xtcp ( #3449 )
2023-05-28 16:50:43 +08:00
fatedier
3faae194d0
feat(nathole): use serverUDPPort in nathole discovery when available ( #3382 )
2023-03-30 21:49:12 +08:00
fatedier
a22d6c9504
frpc: support nathole discover ( #3381 )
2023-03-30 20:28:15 +08:00
fatedier
9d077b02cf
lint by golangci-lint ( #3080 )
2022-08-29 01:02:53 +08:00
fatedier
3fbdea0f6b
rename models to pkg ( #2005 )
2020-09-23 13:49:14 +08:00