Commit graph

232 commits

Author SHA1 Message Date
ruti
2240039377 Fix offset after EAGAIN if buffer is locked 2024-10-18 12:30:15 +03:00
ruti
a067afe6e4 Restore offset in splited request 2024-10-17 09:45:01 +03:00
ruti
721e5808fb mode_add_get -> cache_get/cache_add 2024-10-17 09:45:00 +03:00
ruti
315a0a2826 Unify trigger logic 2024-10-17 09:44:59 +03:00
ruti
6efcafaf53 Remove unnecessary checks 2024-10-17 09:44:59 +03:00
ruti
7e52ce9abf Fix request parsing 2024-10-17 09:44:58 +03:00
ruti
ed7708c4e7 Dont save request if trigger is not set 2024-10-17 09:44:58 +03:00
ruti
6ce89b63aa Auto as tunnel hooks, --repeats 2024-10-17 09:44:57 +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
ruti
ff17dc424b auto: remove cl_err alert, add ssl_err 2024-08-22 17:47:27 +03:00
ruti
8ad4c22b30 Save hosts in lowercase and validate
#100
2024-08-22 17:09:00 +03:00