Commit graph

1323 commits

Author SHA1 Message Date
Daniel Lavrushin
9861339741
feat: implement WebSocket connection pooling and improve MTProto tran… (#229) 2026-05-31 20:36:55 +02:00
Daniel Lavrushin
cf1d065c6a
feat: add quick toggle for all sets and batch enable/disable function… (#226)
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-05-22 00:25:08 +02:00
Daniel Lavrushin
f6ba3ee35f
fix: remove WSFallbackTCP configuration and related references (#224)
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-05-11 23:15:23 +02:00
Daniel Lavrushin
9287d5a90f
Update changelog.md 2026-05-11 22:33:21 +02:00
Daniel Lavrushin
7c113dc7f9
fix: enhance MTProto settings and transport planning for DC Relay sup… (#223)
* fix: enhance MTProto settings and transport planning for DC Relay support

* fix: refactor MTProto settings UI for improved usability and clarity

* fix: update MTProto settings UI to improve DC Relay handling and remove deprecated helper text
2026-05-11 22:32:37 +02:00
Daniel Lavrushin
86e700ffc1
fix: add support for nft_tproxy and nft_socket kernel modules across … (#222)
* fix: add support for nft_tproxy and nft_socket kernel modules across various platform scripts

* Implement WebSocket client in mtproto package with tests

- Added wsdial.go for WebSocket connection handling, including frame reading/writing, connection upgrades, and error handling.
- Introduced wsHandshakeError for managing WebSocket handshake errors.
- Created wsConn struct to manage WebSocket connections with methods for reading, writing, and closing connections.
- Implemented dialWS function to establish a WebSocket connection with optional socket marking.
- Added wsdial_test.go to include unit tests for WebSocket roundtrip communication and error handling for redirects.
- Utilized httptest to create a mock WebSocket server for testing purposes.

* fix: handle error in ensureIPSet when checking for existing sets

* fix: reorder input chain candidates for nft input filter check

* fix: replace boolean closed flag with atomic.Bool for thread safety in wsConn

* fix: simplify WSCustomDomain assignment in handleMTProtoTestWS

* fix: remove unnecessary blank line in localizeFieldError function

* feat: add memory limit configuration and validation, improve logging settings UI

* fix: handle JSON decoding error in handleMTProtoTestWS function

* feat: add ws_fallback_tcp and ws_endpoint_host to MTProto settings

* fix: validate WSEndpointHost format in MTProto settings

* fix: update memory limit help text in English and Russian localization files

* feat: implement msgSplitter for MTProto message handling and enhance FakeTLS error handling

* test: add unit tests for MsgSplitter and FakeTLS handling

* fix: update WSCustomDomain handling and improve related documentation

* fix: ensure proper closure of connections in proxyToMaskingDomain function

* fix: update WSCustomDomain handling and validate upstream mode in handleMTProtoTestWS

* fix: update removeProxyInputAccept to use signature format for mark comparison
2026-05-11 22:00:21 +02:00
Daniel Lavrushin
d13be7f96f
fix: improve single-instance check to prevent false "another b4 insta… (#220)
Some checks are pending
Deploy documentation / build-and-deploy (push) Waiting to run
2026-05-10 17:30:41 +02:00
Daniel Lavrushin
88fe85b516
Update changelog.md
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-05-09 17:57:04 +02:00
Daniel Lavrushin
8d1d6fd58d
fix: update routing logic to handle default gateways and interface reachability (#219) 2026-05-09 17:56:14 +02:00
Daniel Lavrushin
2784a74f9d
Update changelog.md 2026-05-09 17:44:54 +02:00
Daniel Lavrushin
8313e099af
Merge pull request #218 from DanielLavrushin/1-61-1-fixes 2026-05-09 17:28:00 +02:00
Daniel Lavrushin
7dbcebdc42
fix: update translation handling in ConnectionsPage, LogsPage, SetsPage, and SystemInfoDialog components 2026-05-09 17:19:01 +02:00
Daniel Lavrushin
13c1b58b78
fix: update language handling in settings and i18n integration 2026-05-09 17:09:56 +02:00
Daniel Lavrushin
ea7b2f544f
Merge pull request #217 from DanielLavrushin/mikrotik-docs 2026-05-09 15:35:29 +02:00
Daniel Lavrushin
5b0556cce9
fix: add DNS hijacking and disk wear reduction tips for MikroTik container setup 2026-05-09 15:35:04 +02:00
Daniel Lavrushin
d1473431d0
Merge pull request #216 from DanielLavrushin/discord-fix 2026-05-09 15:20:04 +02:00
Daniel Lavrushin
343f44be62
fix: correct long header bitmasking in QUIC initial packet validation 2026-05-09 15:17:45 +02:00
Daniel Lavrushin
927df1efaf
fix: prevent disruption of voice calls, screen share, and gaming in UDP fake mode by refining QUIC packet handling 2026-05-09 15:00:32 +02:00
Daniel Lavrushin
050e40c67a
Merge pull request #215 from DanielLavrushin/1-61-0-fixes 2026-05-09 13:23:39 +02:00
Daniel Lavrushin
d1020ce38b
fix: update port validation logic for Socks5 and MTProto configurations 2026-05-09 13:14:49 +02:00
Daniel Lavrushin
016c950e2b
fix: resolve backup file selection issue in Safari and improve error handling in TLS validation 2026-05-09 13:10:16 +02:00
Daniel Lavrushin
e15826fc01
fix: resolve routing issues with interface names containing dashes and improve error messages for SOCKS5 and MTProto server startup 2026-05-09 12:58:50 +02:00
Daniel Lavrushin
e59cc67b74
feat: simplify FieldError validation logic in apiClient and enhance preflightConfig checks 2026-05-09 12:50:27 +02:00
Daniel Lavrushin
ebedc43092
feat: enhance UDP settings UI with evasion techniques and connection packets limit 2026-05-09 12:39:59 +02:00
Daniel Lavrushin
9cf6c2878c
feat: enhance validation and error handling in configuration
- Implemented a new validation system in the config package to check for various conditions, including port collisions, TLS certificate requirements, and routing mode validity.
- Added detailed error messages for validation failures, including specific field errors for better debugging.
- Introduced API error handling to return structured error responses for invalid configurations.
- Updated the SnackbarProvider to handle multiple snackbar messages in a queue.
- Refactored useSets hook to simplify error handling by removing unnecessary ApiError checks.
- Added localization for error messages in the UI, improving user experience.
- Created utility functions for error localization and reporting.
- Added tests for validation logic to ensure robustness and correctness.
2026-05-09 12:17:30 +02:00
Daniel Lavrushin
2637d144d4
Refactor code structure for improved readability and maintainability 2026-05-09 11:05:30 +02:00
Daniel Lavrushin
86462ffed5
Merge pull request #214 from DanielLavrushin/1-61-0-updates
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-05-08 00:18:24 +02:00
Daniel Lavrushin
9b707849be
feat: enhance BuildFakeUDPFromOriginalV4 and BuildFakeUDPFromOriginalV6 to validate UDP protocol type 2026-05-08 00:13:34 +02:00
Daniel Lavrushin
93425a0e3a
feat: update BuildQUICInitial to enforce size limits and add test for size validation 2026-05-08 00:08:17 +02:00
Daniel Lavrushin
a1c901be70
feat: enhance FakePayloadFile description to clarify usage of presets and QUIC initial generation 2026-05-07 23:56:29 +02:00
Daniel Lavrushin
1aeea54c83
refactor: optimize handleFileChange to use functional state updates and improve protocol detection logic 2026-05-07 23:55:49 +02:00
Daniel Lavrushin
0d95fe62ee
feat: add tests for BuildQUICInitial function to validate packet structure and randomness 2026-05-07 23:54:36 +02:00
Daniel Lavrushin
1074b02c79
feat: update IP header version for fake UDP packets in BuildFakeUDPFromOriginalV4 and IPv4FragmentUDP functions 2026-05-07 23:48:48 +02:00
Daniel Lavrushin
cd613022c0
feat: add safeCapturePath function for validating capture file paths and improve payload handling in UDP methods 2026-05-07 23:40:32 +02:00
Daniel Lavrushin
e8f05d4f34
feat: add QUIC payload presets and enhance UDP fake packet handling 2026-05-07 23:32:56 +02:00
Daniel Lavrushin
ca5148a1c7
feat: implement auto-generated QUIC Initial payload and update related settings 2026-05-07 22:41:03 +02:00
Daniel Lavrushin
02db9bc26a
feat: add QUIC Initial faking strategy and related payload handling 2026-05-07 22:37:35 +02:00
Daniel Lavrushin
fc1150e7db
feat: add support for custom UDP fake packet payloads and related settings 2026-05-07 22:30:03 +02:00
Daniel Lavrushin
2330dcd561
feat: add API endpoints for managing AI models and secrets 2026-05-07 22:11:37 +02:00
Daniel Lavrushin
47b9d40a9c
Merge pull request #212 from DanielLavrushin/quic-fix 2026-05-07 21:48:20 +02:00
Daniel Lavrushin
a3f99a83b8
Merge branch 'main' into quic-fix 2026-05-07 21:48:10 +02:00
Daniel Lavrushin
4e9458aa60
Merge pull request #211 from DanielLavrushin/ai-assistant 2026-05-07 21:43:59 +02:00
Daniel Lavrushin
c365d22c81
refactor: improve code readability and structure across multiple components and hooks
- Simplified destructuring and formatting in various components for better readability.
- Updated API client error handling to use more concise syntax.
- Refactored asynchronous functions to enhance clarity and maintainability.
- Improved handling of state updates and effects in hooks for better performance.
- Cleaned up imports and removed unused variables to streamline code.
2026-05-07 21:43:33 +02:00
Daniel Lavrushin
acced6adf8
feat: add interfaceShareCount function to count shared interfaces for routing rules 2026-05-07 21:22:59 +02:00
Daniel Lavrushin
0bd4ca3f23
refactor: update proxyTable function to return a constant value and simplify route cleanup logic 2026-05-07 21:20:57 +02:00
Daniel Lavrushin
a9953234b9
refactor: move reader initialization inside try block in streamAi function 2026-05-07 21:10:56 +02:00
Daniel Lavrushin
c3fdfcaa13
feat: add tests for BuildSeqOverlapSegmentV6 with various scenarios 2026-05-07 21:09:48 +02:00
Daniel Lavrushin
5dc9bb0df5
refactor: format useAiStatus destructuring for improved readability 2026-05-07 21:06:04 +02:00
Daniel Lavrushin
dbbffbc5db
fix: change Temperature field to pointer in AI request structs for better nil handling 2026-05-07 20:59:34 +02:00
Daniel Lavrushin
fdf7cc5445
feat: implement secret reference management in AISection for improved key handling 2026-05-07 20:56:54 +02:00