UUBulb
b3377127a4
update ddns on server update ( #1050 )
2025-03-31 19:41:04 +08:00
UUBulb
3d5faa8c86
add tests for config & iostream ( #1045 )
...
* add tests for config & iostream
* chore
2025-03-25 22:44:07 +08:00
UUBulb
f34b263b69
improve transfer record logic ( #1033 )
...
* improve transfer record logic
* refactor
* modernize loops
* remove unused type conversions
* update dependencies
* script: keep .gitkeep files
* fix
* remove clear
2025-03-19 22:21:21 +08:00
UUBulb
ea3739cf1c
ddns: support provider hurricane electric ( #1036 )
2025-03-19 21:52:16 +08:00
UUBulb
49c68f0da4
ddns: retreive dns servers from context ( #1034 )
2025-03-17 23:11:40 +08:00
naiba
eec7e4f021
chore: handle errors in ReportSystemInfo methods
2025-03-03 22:56:48 +08:00
naiba
712f85aa31
fix: return errors instead of nil in RequestTask and ReportSystemState methods
2025-03-03 22:45:08 +08:00
UUBulb
af55fae652
improve check for offline rules ( #1013 )
...
* improve check for offline rules
* bug fixes
* update dependencies
* fix error wrap
* fix offline check
* improve readability
2025-03-02 15:37:21 +08:00
UUBulb
ea068d4db1
refactor: simplify server & service manipulation ( #993 )
...
* refactor: simplify server & service manipulation
* update
* fix
* update for nat, ddns & notification
* chore
* update cron
* update dependencies
* use of function iterators
* update default dns servers
2025-02-21 23:08:12 +08:00
naiba
f8f4975090
improve: geoip
2025-02-09 14:39:12 +08:00
UUBulb
eeb96caf4d
feat: batch set server config ( #983 )
...
* feat: batch set server config
* run in parallel
* fix route
* fix
* return some information
* fix order
2025-02-04 11:25:49 +08:00
UUBulb
b75a49c3c6
feat: edit server config online ( #980 )
...
* feat: edit server config online
* clean
* refactor
* generate template
* fix deadlocks
* fix
2025-01-31 13:33:53 +08:00
UUBulb
2a6206f1a9
ddns: allow overriding domains per configuration ( #979 )
2025-01-30 12:19:40 +08:00
UUBulb
ff4fd31ec4
small improvements ( #958 )
...
* small improvements
* fix: return empty iterator if no json present
* use time.Tick
* changes
2025-01-19 21:22:00 +08:00
naiba
c5cb385dc3
chore: refactor
2025-01-04 12:32:29 +08:00
naiba
60de03142e
improve: server list lock
2025-01-04 01:10:16 +08:00
UUBulb
d70cfe9ee9
bug fixes ( #918 )
...
* bug fixes
* fix for backward compatibility
* fix init
* cleanup
* possible fix
* optimize permission check
* Revert "possible fix"
This reverts commit 003f1bbb2aa368aade6702e6019922b7f4871a39.
2024-12-26 23:38:40 +08:00
naiba
72e3406ac0
feat: upgrade frontend
2024-12-25 21:02:54 +08:00
UUBulb
dc0132c9aa
feat: user roles ( #852 )
...
* [WIP] feat: user roles
* update
* update
* admin handler
* update
* feat: user-specific connection secret
* simplify some logics
* cleanup
* update waf
* update user api error handling
* update waf api
* fix codeql
* update waf table
* fix several problems
* add pagination for waf api
* update permission checks
* switch to runtime check
* 1
* cover?
* some changes
2024-12-22 00:05:41 +08:00
naiba
c9056eaa44
refactor: fallback agent ip to connecting ip
2024-12-19 23:21:31 +08:00
UUBulb
5f5620b352
fix: add nil check for ReportSystemState ( #583 )
2024-12-13 22:27:30 +08:00
naiba
7c8cfc4b2f
feat: upgrade frontend
2024-12-07 12:19:48 +08:00
naiba
29d0d2eb3c
feat: 优化 GeoIP 更新逻辑
2024-12-07 11:06:42 +08:00
UUBulb
47099b617e
fix: allocate geoip on server creation ( #554 )
2024-12-05 17:07:31 +08:00
naiba
4861b3e013
feat: refactor grpc keepalive
2024-12-05 00:11:34 +08:00
naiba
a7e4fe0909
rename repo
2024-11-28 19:38:54 +08:00
UUBulb
48b475925b
fix: only close user/agentIo connect channel once ( #21 )
2024-11-26 09:18:13 +08:00
naiba
6db1a4b19d
improve: use stream reduce auth check time
2024-11-23 12:43:02 +08:00
naiba
546685320f
Merge branch 'dev' of github.com:naiba/nezha-v1 into dev
2024-11-22 23:57:48 +08:00
naiba
909cd92e9a
feat: waf 🤡
2024-11-22 23:57:25 +08:00
UUBulb
13810bb38b
report geoip separately, fix server creation & deletion bugs ( #14 )
...
* new geoip method
* report geoip separately, fix server creation & deletion bugs
* fix struct tag
* fix write name
* remove deleteion list
* remove rpc realip header
* Revert "remove rpc realip header"
This reverts commit 8a5f86cf2d7df87f28cfa2a3b3430f449dd6ed73.
2024-11-22 22:40:43 +08:00
naiba
f5776c7464
feat: grpc / web get real ip
2024-11-22 00:19:36 +08:00
uubulb
d56224a118
feat: add i18n support
2024-11-01 05:07:04 +08:00
uubulb
1c308929ee
merge upstream, improve geoip pkg
2024-10-31 03:34:25 +08:00
UUBulb
70b914d535
add setting api ( #461 )
2024-10-27 13:10:07 +08:00
naiba
c5bacf3e84
fix agent connect
2024-10-22 23:44:50 +08:00
naiba
80740ddf39
refactor agent auth & server api
2024-10-20 23:23:04 +08:00
naiba
542f06551e
refactor: remove pages, combine grpc http port
2024-10-20 11:47:45 +08:00
naiba
8849cb51e6
init jwt
2024-10-20 00:09:16 +08:00
UUBulb and nap0o
bf9c6d669a
ddns: store configuation in database ( #435 )
...
* ddns: store configuation in database
Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com >
* feat: split domain with soa lookup
* switch to libdns interface
* ddns: add unit test
* ddns: skip TestSplitDomainSOA on ci
network is not steady
* fix error handling
* fix error handling
---------
Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com >
2024-10-17 21:03:03 +08:00
UUBulb
427e0e5449
feat: description file for custom theme; use gjson ( #433 )
...
* feat: description file for custom theme; use gjson
* fix gosec
* remove outdated stuff
2024-10-10 00:08:16 +08:00
UUBulb
aa6879a666
improve: use sync.Pool for buffer allocation ( #423 )
2024-09-27 18:50:19 +08:00
UUBulb
911bce71ff
refactor: ddns ( #414 )
...
* refactor ddns
* update webhook
2024-08-24 11:11:06 +08:00
UUBulb
f60d344635
feat: framed fm for webshell ( #411 )
...
* feat: framed fm for webshell
* 1MB buffer
2024-08-20 22:25:29 +08:00
naiba
e0599e7a38
fix: 流量统计异常
2024-08-12 10:06:55 +08:00
naiba
4546524df0
improve: 优化可能造成流量统计异常的情况
2024-08-11 10:35:19 +08:00
naiba
4ce4d85a3e
improve: Handle case when host is not found in LookupGeoIP
2024-07-28 15:11:50 +08:00
naiba
acd5d54886
fix: CountryCode 被冲掉
2024-07-28 14:39:14 +08:00
UUBulb and naiba
2eb8417b24
feat: use embed geoip database ( #396 )
...
* feat: use embed geoip database
* mention ipinfo
* only read once
* comments
comments
* chore: installer version
---------
Co-authored-by: naiba <hi@nai.ba >
2024-07-28 13:59:58 +08:00
naiba
1e704d38ad
✨ 内置HTTP内网穿透
2024-07-14 19:41:50 +08:00