Commit graph

14 commits

Author SHA1 Message Date
Daniel Lavrushin
dcc0fffa16
feat: implement tunable MTProto connection timeouts and improve sessi… (#269) 2026-07-05 00:12:53 +02:00
Daniel Lavrushin
463809e12c
feat: migrate MTProto secret handling to support multiple secrets (#268)
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-07-02 12:11:55 +02:00
Daniel Lavrushin
034f9e3f28
fix: update routing logic to prevent conflicts with other router apps… (#253)
Some checks are pending
Deploy documentation / build-and-deploy (push) Waiting to run
2026-06-14 01:26:35 +02:00
Daniel Lavrushin
d267d12083
fix: exclude dummy interfaces from system interfaces list and ensure … (#244) 2026-06-08 16:06:55 +02:00
Daniel Lavrushin
33bb8eb07b
feat(discord): add support for Discord voice packet detection and han… (#243) 2026-06-07 15:39:52 +02:00
Daniel Lavrushin
90fd37eebb
fix: resolve device duplication and missing names on Traffic page (#240)
Some checks failed
Deploy documentation / build-and-deploy (push) Has been cancelled
2026-06-06 02:45:23 +02:00
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
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
23047d1891
feat(mtproto): pass context to StartDCRefresher for improved control [ERROR] MTProto unknown DC 203 from <ip:port>
Fixes #190
2026-04-18 18:01:29 +02:00
Daniel Lavrushin
5711f5056d
Refactor code structure for improved readability and maintainability 2026-04-18 13:22:34 +02:00
Daniel Lavrushin
e1b8c7e74e
Remove unused SVG file, optimize TLS record writing, and clean up MTProto logging
- Deleted the unused SVG file `undraw_docusaurus_tree.svg` from the documentation assets.
- Refactored the `Write` method in `faketls.go` to optimize the TLS record writing process by reducing the number of write calls.
- Removed unnecessary verification logging in `obfuscated2.go` to streamline the handshake process.
- Updated logging in `server.go` to simplify the output when a new MTProto secret is generated and saved.
2026-03-23 21:45:55 +01:00
Daniel Lavrushin
69229a1b90
feat(mtproto): Add MTProto secret generation and configuration endpoints 2026-03-22 13:59:57 +01:00
Daniel Lavrushin
3b63fcabce
feat(mtproto): Implement MTProto API endpoints and configuration management
- Added MTProto API handler with endpoints for generating secrets and managing configuration.
- Implemented MTProto configuration structure and validation.
- Introduced MTProto server with connection handling and relay functionality.
- Added support for obfuscated connections and fake TLS handling.
- Created utility functions for secret generation and parsing.
- Implemented tests for secret parsing, DC resolution, and SNI extraction from ClientHello.
- Enhanced UI components for MTProto settings in the frontend.
2026-03-22 13:22:43 +01:00