Commit graph

234 commits

Author SHA1 Message Date
ruti
890a66ee2f Add IPv4 to proto list 2024-11-10 02:39:21 +03:00
ruti
276073ddea More pedantic code 2024-11-09 18:07:27 +03:00
ruti
38f4fe169e More details in logs 2024-11-09 16:20:13 +03:00
SashaXser
75671fa11c
Fixes from CodeQL (#223)
* Fix code scanning alert no. 4: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix code scanning alert no. 5: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-11-05 18:19:32 +03:00
ruti
0a06ba41c9 Fix -R long name, remove some flags 2024-10-28 22:16:01 +03:00
ruti
c3c196e741 General socket init for TCP and UDP 2024-10-22 18:30:08 +03:00
ruti
bbe9522242 Call the post desync func only once
#212
2024-10-22 11:45:54 +03:00
ruti
9318e90e4e Remove false assert
#212
2024-10-22 10:03:56 +03:00
ruti
193c93a68f Bump version, update README.md 2024-10-20 19:33:43 +03:00
hufrea
3cfdf4f7e0
--round (#201) 2024-10-20 18:50:08 +03:00
ruti
6dca571567 Fix loop if pos count > 1 2024-10-17 09:44:18 +03:00
ruti
13b0048514 Split range 2024-10-17 08:45:50 +03:00
ruti
93587ce8c1 Set TTL for both IP versions
#146 #17
2024-10-15 21:52:18 +03:00
ruti
8116b0de61 Fix tlsrec on negative position 2024-10-15 20:07:55 +03:00
ruti
b95926d9d2 Add more offset flags 2024-10-15 04:33:20 +03:00
ruti
dbc85417af Check IPv6 support
Change family for default address only
2024-10-06 19:08:45 +03:00
ruti
c71a096168 Check IPv6 support
#175 #169
2024-10-06 19:01:40 +03:00
Kirill
322f9261cc
Fix send_fake implementation conditional (#163) 2024-09-30 13:39:10 +03:00
ruti
dcc492b8fd sizeof(struct sockaddr_ina) as the max key size 2024-09-24 21:04:30 +03:00
ruti
7dde94e3d2 compile without sa_family_t 2024-09-24 17:51:40 +03:00
ruti
e406476610 rst if exist only one group 2024-09-24 17:51:39 +03:00
Aleksey Smirnov
dca3b5693a
Separate options from service, add system service (#152) 2024-09-24 14:05:52 +03:00
ruti
77ac202f5c create empty group if a trigger is spec
#144
2024-09-23 14:56:03 +03:00
Kirill
f11f5b0d67
Use serialization for key_struct (#138)
* extend.c: use serialization for key_struct

* serialize directly from address

* fix serialize_addr return

* return error, style

---------

Co-authored-by: ruti <>
2024-09-20 15:03:00 +03:00
ruti
889391b7b1 memset struct padding 2024-09-18 15:29:53 +03:00
ruti
a9ecc83932 Transparent IPV6 2024-09-17 22:51:39 +03:00
ruti
5e5dec60f2 params.h: char -> bool 2024-09-17 22:31:46 +03:00
Lurker00
515129cccc
Bug fix: uninitialized padding eliminated (#137) 2024-09-17 22:29:47 +03:00
ruti
0a20d69537 Bump version, update README.md 2024-09-14 22:26:59 +03:00
ruti
e02ce91363 auto-mode option (#127)
* trigger auto if connetion closes/resets after several packets

* send RST if remote connection is reset

* change cache value struct
2024-09-14 15:47:57 +03:00
Lurker00
193737173b
Delete broken event, log "pull is full" error (#132)
* Delete event with closed socket

* Log "pull is full" error

* Error logging inside add_event and init_pool
2024-09-13 22:23:04 +03:00
ruti
9b685ecbb9 restore events after reconnect
dc6966e broke auto
2024-09-13 09:13:58 +03:00
Trevor Arjeski
ef12f43c60
linux service instructions (#128) 2024-09-11 15:53:41 +03:00
ruti
dc6966ec1c ignore events until connection is established 2024-09-10 22:52:15 +03:00
Lurker00
02a9e046fd
Transparent proxy mode (#114)
* Transparent proxy

* Typo errors

* long long -> intmax_t for printing time_t

---------

Co-authored-by: vel21ripn <>
Co-authored-by: Konstantin Saliy <ksaliy@s-terra.ru>
2024-09-10 21:10:11 +03:00
Lurker00
1d6c0a132e Handle SIGTERM 2024-09-10 16:57:19 +03:00
hufrea
950e85df2c
vmsplice instead of sendfile 2024-09-08 20:21:26 +03:00
ruti
fdcab96c5b fix integer overflow 2024-09-08 17:37:38 +03:00
ruti
663cbf8177 fix integer overflow and unhandled error 2024-09-08 16:50:21 +03:00
ruti
4f22ff6184 fix ANTOHS macros
#117
2024-09-08 00:58:12 +03:00
ruti
2e244fd1b8 Fix --fake on Windows 2024-08-25 11:28:24 +03:00
ruti
9fb5cfbd63 Change default options in .bat 2024-08-23 00:22:54 +03:00
ruti
078842b084 Change default options in .bat 2024-08-22 22:06:00 +03:00
ruti
9c6c86efae Bump version, update README.md 2024-08-22 18:15:14 +03:00
ruti
7700791053 Style 2024-08-22 17:53:17 +03:00
ruti
bd2eb4e4e1 Handle empty response 2024-08-22 17:47:29 +03:00
ruti
efee93cfd9 Update README.md 2024-08-22 17:47:29 +03:00
ruti
db47c7841d oob2 -> disoob, send only one OOB byte 2024-08-22 17:47:28 +03:00
ruti
550f2d2f5f drop-sack 2024-08-22 17:47:28 +03:00
ruti
2f98038991 fake-offset, oob2 2024-08-22 17:47:27 +03:00