Commit Graph
13 Commits
  • feat(xray/outbounds): TCP probe mode + Test All + timing breakdown
    - service.TestOutbound now dispatches on `mode`:
      - "tcp": parallel net.DialTimeout to every server/peer endpoint
        (vmess/vless/trojan/ss/socks/http/wireguard). No xray spin-up,
        no semaphore — safe to run concurrently across outbounds.
      - "http" (default): existing temp-xray + SOCKS path, now with an
        httptrace.ClientTrace breakdown (DNS / Connect / TLS / TTFB)
        alongside the total delay and status code.
    - testSemaphore renamed to httpTestSemaphore — only HTTP probes
      serialise, TCP runs free.
    - TestOutboundResult carries the per-mode extras: timing fields for
      HTTP, per-endpoint dial list for TCP, plus a `mode` echo.
    - Controller reads `mode` from the form and passes it through.
    - useXraySetting: testOutbound accepts mode (default "tcp"); new
      testAllOutbounds(mode) runs a worker pool (concurrency 8 for TCP,
      1 for HTTP) and skips blackhole / loopback / blocked outbounds —
      also skips freedom / dns under TCP since they have no endpoint.
    - OutboundsTab: TCP/HTTP radio toggle and a Test All button land in
      the toolbar; the per-row ⚡ now uses the selected mode. Results
      surface in a popover with the full timing breakdown plus the
      endpoint list for TCP probes. Latency header replaces the duplicate
      "check" column title.
    
    Practical effect: testing ten outbounds in TCP mode drops from ~50–100s
    (serial HTTP) to ~1–2s (parallel dial × 8). HTTP mode stays as the
    authoritative probe and now shows where the latency actually lives.
  • v3
  • Add url speed test for outbound (#3767)
    * add outbound testing functionality with configurable test URL
    
    * use no kernel tun for conflict errors
  • Some fixes and improvements (#1997)
    * [refactor] api controller
    
    * [fix] access log path
    
    better to not hardcode the access log path, maybe some ppl dont want to use the default ./access.log
    
    * [fix] set select options from logs paths in xray settings
    
    * [update] .gitignore
    
    * [lint] all .go files
    
    * [update] use status code for jsonMsg and 401 to unauthorize
    
    * [update] handle response status code via axios
    
    * [fix] set correct value if log paths is set to 'none'
    
    we also use the default value for the paths if its set to none
    
    * [fix] iplimit - only warning access log if f2b is installed
  • Show outbound traffic in outbounds table (#1711)
    * store outbound traffic in database
    
    * show outbound traffic in outbounds table
    
    * add refresh button