Commit Graph
25 Commits
  • refactor(vless): drop selectedAuth, expose two explicit auth buttons
    selectedAuth was UI-only metadata (Xray never reads it) and entirely
    redundant with the encryption string itself — the dropdown only
    controlled which block from `xray vlessenc` to apply. Replace it with
    two explicit buttons ("X25519" and "ML-KEM-768") so the user picks
    the auth mode in one click instead of dropdown + Get-New-Keys.
    
    - VLESSSettings drops the field from constructor, fromJson, and toJson;
      legacy `selectedAuth` values still in DB will be silently shed on the
      next save.
    - getNewVlessEnc(authLabel) now takes the label as a parameter; clear
      resets only decryption/encryption.
    - Fallbacks visibility now keys on encryption === "none" (the same
      thing the dropdown was effectively gating on).
    - Info modal drops the redundant Authentication tag and colours the
      encryption tag red when it's "none", green otherwise.
    
    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
  • fix(vless): scope testseed to xtls-rprx-vision flow
    testseed is only meaningful for the exact xtls-rprx-vision flow, but the
    panel was emitting it for any non-empty flow (including the UDP variant)
    and keeping it on the inbound after the flow was cleared via the client
    modal. Tighten the gate end-to-end:
    
    - VLESSSettings.toJson (inbound + outbound) now only emits testseed when
      the flow is exactly xtls-rprx-vision and the array is 4 positive ints;
      default state is empty so unmodified inbounds omit the field entirely.
    - canEnableVisionSeed drops the udp443 variant per spec.
    - Form adds a tooltip + theme-aware help text and an inline error when
      the user partially fills the four inputs; submit is blocked in that
      state. Reset clears to empty (= use server defaults).
    - UpdateInboundClient strips a now-orphaned testseed when the spliced
      client no longer leaves any XRV flow in the inbound.
    - MigrationRequirements cleans up legacy rows where testseed lingered
      after flow changes or was saved for non-XRV flows by older versions.
    
    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
  • tun: dual MTU, gateway, DNS, auto routing
    Change TunSettings to support separate IPv4/IPv6 MTU values and add gateway, DNS, autoSystemRoutingTable and autoOutboundsInterface properties. Introduces _normalizeMtu to accept legacy single-value or array forms and provide sensible defaults. Update fromJson/toJson to handle new fields and preserve backward compatibility. Update tun form UI to expose MTU IPv4/IPv6 inputs, Gateway/DNS tag selects, Auto Routing Table and Auto Outbounds input.
  • finalmask
    Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • add hysteria inbound
    Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Add TUN protocol for inbound
    Introduces TUN protocol to inbound.js, including a new TunSettings class. Updates inbound form to support TUN protocol and adds a dedicated form template for TUN settings. Translation files are updated with TUN-related strings for all supported languages.
  • feat: Real-time Outbound Traffic, UI Improvements & Fix (#3629)
    * Refactor HTML and JavaScript for improved UI and functionality
    
    - Cleaned up JavaScript methods in subscription.js for better readability.
    - Updated inbounds.html to clarify traffic update handling and removed unnecessary comments.
    - Enhanced xray.html by correcting casing in routingDomainStrategies.
    - Added mobile touch scrolling styles in page.html for better tab navigation on small screens.
    - Streamlined vless.html by removing redundant line breaks and improving form layout.
    - Refined subscription subpage.html for better structure and user experience.
    - Adjusted outbounds.html to improve button visibility and functionality.
    - Updated xray_traffic_job.go to ensure accurate traffic updates and real-time UI refresh.
    
    * Refactor client traffic handling in InboundService
    
    - Updated addClientTraffic method to initialize onlineClients as an empty slice instead of nil.
    - Improved clarity and consistency in handling empty onlineUsers scenario.
    
    * Add WebSocket support for outbounds traffic updates
    
    - Implemented WebSocket connection in xray.html to handle real-time updates for outbounds traffic.
    - Enhanced xray_traffic_job.go to retrieve and broadcast outbounds traffic updates.
    - Introduced MessageTypeOutbounds in hub.go for managing outbounds messages.
    - Added BroadcastOutbounds function in notifier.go to facilitate broadcasting outbounds updates to connected clients.
    
    ---------
    
    Co-authored-by: lolka1333 <test123@gmail.com>
  • feat: Add WebSocket support for real-time updates and enhance VLESS settings (#3605)
    * feat: add support for trusted X-Forwarded-For and testseed parameters in VLESS settings
    
    * chore: update Xray Core version to 25.12.8 in release workflow
    
    * chore: update Xray Core version to 25.12.8 in Docker initialization script
    
    * chore: bump version to 2.8.6 and add watcher for security changes in inbound modal
    
    * refactor: remove default and random seed buttons from outbound form
    
    * refactor: update VLESS form to rename 'Test Seed' to 'Vision Seed' and change button functionality for seed generation
    
    * refactor: enhance TLS settings form layout with improved button styling and spacing
    
    * feat: integrate WebSocket support for real-time updates on inbounds and Xray service status
    
    * chore: downgrade version to 2.8.5
    
    * refactor: translate comments to English
    
    * fix: ensure testseed is initialized correctly for VLESS protocol and improve client handling in inbound modal
    
    * refactor: simplify VLESS divider condition by removing unnecessary flow checks
    
    * fix: add fallback date formatting for cases when IntlUtil is not available
    
    * refactor: simplify WebSocket message handling by removing batching and ensuring individual message delivery
    
    * refactor: disable WebSocket notifications in inbound and index HTML files
    
    * refactor: enhance VLESS testseed initialization and button functionality in inbound modal
    
    * fix:
    
    * refactor: ensure proper WebSocket URL construction by normalizing basePath
    
    * fix:
    
    * fix:
    
    * fix:
    
    * refactor: update testseed methods for improved reactivity and binding in VLESS form
    
    * logger info to debug
    
    ---------
    
    Co-authored-by: lolka1333 <test123@gmail.com>
  • Vlessenc (#3426)
    * mlkem768
    
    * VlessEnc
  • chore: clients comment improvement
    - use default ant components instead custom styles
    - remove comments in inbound info modal (duplicates information)
    - enhance tooltip usage
  • Code refactoring (#2865)
    * refactor: use vue inline styles in entire application
    
    * refactor: setting row in dashboard page
    
    * refactor: use blob for download file in text modal
    
    * refactor: move all html templates in `web/html` folder
    
    * refactor: `DeviceUtils` -> `MediaQueryMixin`
    The transition to mixins has been made, as they can update themselves.
    
    * chore: pretty right buttons in `outbounds` tab in xray settings
    
    * refactor: add translations for system status
    
    * refactor: adjust gutter spacing in setting list item
    
    * refactor: use native `a-input-password` for password field
    
    * chore: return old system status
    with new translations
    
    * chore: add missing translation