mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-18 05:58:43 +00:00
* Add remote routing URL support * Harden remote routing refresh * fix(sub): harden remote routing fetch and accept Mihomo src rule flag Remote routing bytes reach the YAML/JSON parsers from goroutines that run outside Gin's recovery, so a parser panic on crafted input would take down the whole panel. Contain it in fetch() (a panic now degrades to a failed refresh that keeps the last-good value and releases the in-flight slot) and start the refresh, cache-load and startup-warm goroutines through common.GoRecover like the other background workers. The route-graph validator only skipped a trailing no-resolve flag, so a valid Mihomo rule like IP-CIDR,x,DIRECT,no-resolve,src was rejected as an unknown target; skip both option flags. Also deduplicate the HTTPS-source classification into common.ParseRemoteRoutingURL so the save-time validator and the resolver can never drift (internal/sub imports internal/web/service, so the copy existed only to avoid the import cycle), move the test-only mergeRemoteClashRulesYAML helper into the test file, and trim oversized comment blocks. --------- Co-authored-by: Duxxie <yelloduxx@users.noreply.github.com> Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com> |
||
|---|---|---|
| .. | ||
| check_client_ip_frozen_ban_test.go | ||
| check_client_ip_job.go | ||
| check_client_ip_job_integration_test.go | ||
| check_client_ip_job_test.go | ||
| check_client_ip_scale_test.go | ||
| check_cpu_usage.go | ||
| check_hash_storage.go | ||
| check_hash_storage_test.go | ||
| check_memory_usage.go | ||
| check_xray_running_job.go | ||
| clear_logs_job.go | ||
| clear_logs_job_test.go | ||
| free_os_memory.go | ||
| ip_limit_allowlist.go | ||
| ip_limit_allowlist_agreement_test.go | ||
| ip_limit_allowlist_test.go | ||
| ldap_auto_delete_guard_test.go | ||
| ldap_sync_job.go | ||
| ldap_sync_job_test.go | ||
| mtproto_job.go | ||
| node_heartbeat_job.go | ||
| node_traffic_sync_job.go | ||
| node_traffic_sync_job_test.go | ||
| outbound_subscription_job.go | ||
| periodic_traffic_reset_client_test.go | ||
| periodic_traffic_reset_job.go | ||
| periodic_traffic_reset_job_test.go | ||
| reap_sync_orphans_job.go | ||
| remote_routing_job.go | ||
| stats_notify_job.go | ||
| warp_ip_job.go | ||
| warp_ip_job_test.go | ||
| xray_traffic_inform_test.go | ||
| xray_traffic_job.go | ||
| xray_traffic_job_broadcast_test.go | ||