Repository navigation
Project Structure
github-actions[bot] edited this page Oct 9, 2026
·
18 revisions
urnetwork-3.23-fix/
โโโ *.go # Core network stack (root package)
โโโ go.mod / go.sum # Module: github.com/urnetwork/connect (Go 1.27)
โโโ Dockerfile # Alpine multi-arch provider image
โโโ CHANGELOG.md # Version history with per-release notes
โโโ FORK_CHANGES.md # Delta summary vs upstream urnetwork/connect
โโโ CODESTYLE.md # Go conventions for this codebase
โ
โโโ provider/ # Provider CLI binary
โ โโโ main.go # Entrypoint: auth / provide / auth-provide commands
โ โโโ proxy_health_log.go # Per-proxy health state machine and dead-proxy detection
โ โโโ proxy_slow_retry.go # Slow-retry state: 24h daily gate, 14-day drop ceiling, persistence
โ โโโ proxy_reload.go # SIGHUP-triggered hot-reload of proxy list
โ โโโ proxy_state.go # In-memory proxy registry with startup stagger
โ โโโ proxy_benchmark.go # Optional per-proxy SOCKS5 latency probes
โ โโโ bandwidth_reporter.go # Posts bandwidth metrics to configured fleet target
โ โโโ proxy_id.go # Stable proxy identity across reloads
โ โโโ claim_credential.go # `provider claim` credential choice (store client, client jwt file, legacy coldkey)
โ โโโ thrash_watchdog.go # Swap-thrash watchdog, supervised exit-75 restart, container opt-in
โ โโโ shmlog_linux.go # Linux shared-memory log ring buffer
โ โโโ shmlog_fallback.go # Fallback for non-Linux builds
โ โโโ direct.go # Dynamic direct native connection controller
โ โโโ proxy_paste.go # Bulk proxy ingestion and format normalization
โ โโโ ssrf_guard.go # SSRF guard for proxy source URL fetching
โ โโโ doh_cache.go # Persistent DNS-over-HTTPS resolver cache
โ โโโ client_jwt_hotrestart.go # Identity snapshotting across hot restarts
โ โโโ read_fd_frac_unix.go # Linux/Unix file descriptor pressure reader
โ โโโ read_fd_frac_windows.go # Windows file descriptor pressure stub
โ โโโ dup_linux_arm64.go # ARM64-specific fd dup shim
โ โโโ dup_linux_generic.go # Generic Linux fd dup shim
โ โโโ hotswap_windows.go # Windows HotSwap via named pipes
โ โโโ hotswap_unix.go # Linux HotSwap via Unix sockets
โ โโโ hotswap.go # HotSwap handoff coordination (spawn, takeover, drain)
โ โโโ control_socket.go # Control socket server (hotswap, shutdown, status commands)
โ โโโ audit_ring.go # 1000-entry command audit ring, persisted to audit.json
โ โโโ systemd_status.go # Proxy-liveness counters and sliding STATUS= severity
โ โโโ control_state.go # Persistent provider state management
โ โโโ restrict_socket_windows.go # Windows DACL socket permission hardening
โ โโโ metrics_listen.go # Prometheus /metrics HTTP listener
โ โโโ metrics_provider.go # Provider-specific metrics registration
โ โโโ contract_metrics.go # Per-contract Prometheus counters
โ โโโ lifetime_metrics.go # Provider lifetime Prometheus gauges
โ โโโ oom_cap.go # OOM-aware start cap (shadow by default) and kill switch
โ โโโ action_ledger.go # Audit ledger of capacity decisions (autopilot.jsonl)
โ โโโ baseline.go # Local behaviour record (baseline.jsonl) for upgrade comparison
โ โโโ h3_direct.go # H3 settings and eligibility for the direct identity
โ โโโ node_internals.go # Internals snapshot (goroutines, heap, transport split) served to `top`
โ โโโ memory_headroom.go # Low free-memory watcher (host or cgroup headroom log)
โ โโโ resource_config_warn.go # Startup warning when memory limits are short for the pool
โ โโโ smart_dialer_probe.go # Background connect probes for the smart dialer
โ โโโ proxy_spread_sampler.go # Content-keyed spread sampler for the stage-1 table probe
โ โโโ proxy_direct_grade.go # Read-only direct-path health grade (~/.urnetwork/direct_grade.json)
โ โโโ Makefile # Cross-compile targets (amd64, arm64, darwin)
โ
โโโ protocol/ # Protobuf definitions and generated Go code
โ โโโ *.proto # Source definitions (ip, transfer, frame, extender, audit)
โ โโโ *.pb.go # Generated โ do not edit directly
โ โโโ Makefile # Runs protoc to regenerate pb.go files
โ
โโโ extender/ # Extender transport implementation
โ โโโ extender.go # Client-side extender connection handler
โ โโโ extender_test.go
โ
โโโ connectctl/ # connectctl CLI (upstream tool, unmodified)
โ
โโโ api/ # API client bindings
โ โโโ bringyour.yml # API endpoint definitions
โ โโโ test.sh
โ
โโโ docker/ # Docker startup scripts
โ โโโ scripts/ # start_jwt.sh, start_stable.sh, start_nightly.sh, urnet-tools.sh
โ โโโ ... # Selected by BUILD env var at container start
โ
โโโ pelican/ # Pelican game-server panel egg
โ โโโ egg-urnetwork-323fix.json # PLCN_v3 egg definition (BUILD, USER_AUTH, PASSWORD, AUTHCODE)
โ โโโ README.md # Panel deployment guide, env vars, PELICAN-gated updates
โ
โโโ workers/ # Cloudflare Worker sources (dl.fullbars.xyz + friends)
โ โโโ dl/ # Script proxy + install.fullbars.xyz smart dispatcher/landing page
โ โโโ dl-fullbars/ # latest-version + releases/download GitHub release mirror
โ โโโ geo/ # geo.fullbars.xyz โ client geo/RTT info endpoint
โ โโโ provider-redirect/ # provider.fullbars.xyz -> GitHub 301 redirect
โ โโโ README.md # Routes, deploy notes, wrangler usage
โ
โโโ cmd/ # Go binaries (v3.23.0-fix.27.0+)
โ โโโ urnet-tools/ # Provider-aware fleet ops tool (process/systemd)
โ โโโ urnet-docker/ # Container variant (docker exec delegation)
โ
โโโ internal/urnettools/ # Shared Go core for the urnet-tools binaries
โ โโโ cli.go # Dispatch, flag parsing, confirm gates
โ โโโ target.go # Targeting (--unit/--user/--network/--network-id/--state-dir)
โ โโโ discover.go # Provider discovery (/proc + systemd units)
โ โโโ update.go # Interactive-first update, digest verify, atomic swap
โ โโโ legacy_cmds.go # Reporting config, lifecycle, tuning, and proxy commands
โ โโโ autopilot.go # autopilot log: timeline of capacity decisions (OOM cap, trim)
โ โโโ baseline.go # baseline show/mark/compare: this box's own record
โ โโโ internals.go # Internals snapshot for the `top` panel (transport split)
โ โโโ log_stream.go # Native log follower: last lines, then follow; rotation and truncation aware
โ โโโ log_follow_open_*.go # Per-OS open for the follower (Windows: FILE_SHARE_DELETE, paths over MAX_PATH)
โ โโโ lifecycle_start_windows.go # Windows provider start (schtasks/detached)
โ โโโ lifecycle_stop_windows.go # Windows provider stop (socket shutdown + TerminateProcess)
โ โโโ lifecycle_restart_windows.go # Windows provider restart (HotSwap fallback)
โ โโโ lifecycle_windows.go # Windows lifecycle helpers (schtasks, task naming)
โ โโโ lifecycle_stubs_notwindows.go # Stubs for non-Windows builds
โ โโโ hotswap_windows.go # Windows HotSwap candidate launch
โ โโโ ... # + tests (~73)
โ
โโโ scripts/ # Installer and test scripts (installer stays shell)
โ โโโ Provider_Install_Linux.sh # One-command provider install for Linux (installs the Go urnet-tools)
โ โโโ Provider_Install_Win32.ps1
โ โโโ Provider_Uninstall_Linux.sh
โ โโโ Provider_Uninstall_Win32.ps1
โ โโโ test_provider_install.sh # CI: validates installer script logic
โ โโโ test_fallback_logic.sh # CI: validates fallback behavior
โ
โโโ docs/ # Operational documentation
โ โโโ Configuration.md
โ โโโ Docker-Deployment.md
โ โโโ Installation.md
โ โโโ High-Volume-Performance-Tuning.md
โ โโโ Multi-Container-Scaling.md
โ โโโ Proxy-Management.md
โ โโโ Proxy-URL-Sources.md
โ โโโ Traffic-Amplification.md
โ โโโ Adding-Proxies.md
โ โโโ Bittensor-Operations.md
โ โโโ Troubleshooting.md
โ โโโ design/ # Internal design docs (proxy health, hot-reload, bandwidth)
โ
โโโ monitoring/ # Prometheus + Grafana observability stack
โ โโโ docker-compose.yml # Prometheus + Grafana stack
โ โโโ grafana/ # Grafana dashboards and provisioning
โ โโโ prometheus/ # Prometheus scrape configuration
โ โโโ setup.sh # Monitoring stack setup script
โ
โโโ releases/ # Per-version release notes (v3.23.0-fix.*)
โ
โโโ .github/workflows/
โ โโโ build.yml # CI: parallel test-and-lint + build-and-push Docker (multi-arch)
โ โโโ release.yml # Tag push: builds provider binaries (multi-GOOS), scans (VirusTotal + ClamAV), publishes the release
โ โโโ shakedown.yml # Pre-release shakedown: fresh-droplet install + proxy + URL + docker test on v3.23.0-fix.* tags
โ โโโ docker-shakedown.yml # Docker shakedown on v3.23.0-fix.* tags
โ โโโ codeql.yml # Weekly scheduled CodeQL security scan
โ โโโ dash-compat.yml # Dash/POSIX compatibility check
โ โโโ unix-lifecycle.yml # Unix lifecycle verification (push to main + PR)
โ โโโ windows-lifecycle.yml # Windows lifecycle verification (push to main + PR)
โ โโโ lifecycle-stress.yml # Lifecycle stress test (PRs touching provider/, daily, manual)
โ โโโ docker-multi-container.yml # Multi-container scaling test (fix/* pushes + manual)
โ โโโ tool-functional-smoke.yml # urnet-tools functional smoke (main + PR, manual)
โ โโโ functional-soak.yml # Three-hour functional soak (manual only)
โ โโโ cfaa-blocklist-sync.yml # Twice-daily CFAA blocklist data refresh from upstream
โ โโโ upstream_monitor.yml # Twice-daily: watch urnetwork/connect PRs and commits, Discord alerts
โ โโโ wiki-sync.yml # On docs/** push: copy docs/*.md into the GitHub wiki
โ โโโ pr-labeler.yml # Label pull requests
โ
โโโ Root package files (core network stack):
โโโ ip.go # IP packet relay core (81 KB)
โโโ ip_remote_multi_client.go # Multi-client relay coordinator
โโโ ip_security.go # Pre-compiled IP blocklist (2.3 MB)
โโโ transfer.go # Contract-based bandwidth allocation
โโโ transfer_contract_manager.go # Per-proxy contract lifecycle
โโโ transfer_route_manager.go # Adaptive routing with RTT tracking
โโโ transfer_rtt.go # RTT window measurement
โโโ transfer_encrypt.go # Per-contract encryption
โโโ transfer_queue.go # Backpressure queue
โโโ transport.go # Transport abstraction layer
โโโ transport_h3_gate.go # Runtime on/off gate for the H3 transport
โโโ transport_h3_counted.go # Byte-counting wrapper for the H3 UDP socket
โโโ transport_h3_datagram.go # QUIC DATAGRAM message layer and receive route
โโโ transport_h3_datagram_lane.go # Bounded send lane for outgoing datagrams
โโโ transport_h3_datagram_state.go # DATAGRAM counters shown on the [health] line
โโโ transport_h3_memory.go # H3 memory bound
โโโ transport_mode_stats.go # Payload frames and bytes per transport mode
โโโ transport_p2p_webrtc.go # WebRTC P2P transport
โโโ transport_pt.go # Pluggable tunnel transport
โโโ net_http.go # HTTP proxy with chunked encoding
โโโ net_http_doh.go # DNS-over-HTTPS resolver
โโโ net_http_smart_dialer.go # Smart dialer: measured-cost transport preference (off by default)
โโโ emoji/ # Network tag validation and suggestion (copied from upstream)
โโโ net_resilient.go # Platform-aware resilient connections
โโโ message_pool.go # GC-reducing byte buffer pool
โโโ proxy_health.go # Proxy health scoring
โโโ tuning.go # Auto-tuning (turbo/lowmem modes)
โโโ log.go # Structured logging helpers
โโโ metrics_prometheus.go # Prometheus metrics registry and collector
โโโ connect.go # Top-level client/server entrypoint