Commit graph

17 commits

Author SHA1 Message Date
Σrebe - Romain GERARD
23051c7982 Add support for socks5 ipv4
Former-commit-id: 93f444c7554b05a247beb3cef3f9e9e67dbdf04e
Former-commit-id: 9f48bc09d61b4b0723553ad7635382570dd8568a [formerly 726f62c02f451aa3d3bce2d43f82fb89ac57df6f] [formerly ecc452136b37f5387b8328f0a067ef14d3ae20ea [formerly a198098e9a56b46b7e699f43287c479bc80c7dc1 [formerly a198098e9a56b46b7e699f43287c479bc80c7dc1 [formerly a198098e9a56b46b7e699f43287c479bc80c7dc1 [formerly c42827e3842267f52c65419a91c91672294d8e60]]]]]
Former-commit-id: 7302ac40185825650c63dbbbb7746fa628ec7aea [formerly 2f2dbaf7687a712ecf7efe02c937c667bccce360]
Former-commit-id: dca93f1ee79fbf5a7243fc664c3e71b9ffeedfdd
Former-commit-id: 01939d01a83faea0e336403371fdcfbcf668694c
Former-commit-id: d3f7507bdee393f93c79fba6aac49fa68d6788cc
Former-commit-id: 7715e5d09783415843b188584ff4f339171bb266 [formerly c2fe751fae043fca4df6a3bbe0fcf790feaa3115]
Former-commit-id: 57ea26c8efe39e0f025b806af4607edd1bc928f4
2023-01-18 20:34:54 +01:00
Romain GERARD
ee6c97be08 lint
Former-commit-id: 464406e4984df2db0d75b13a35e2917f09e9eddd
Former-commit-id: 95940dcc1aec7cea8f0c3cc5a035f8f03fc9358c [formerly 1b65e1d231d48b4c6ff46b66e1966a8cfe245a8c] [formerly de1e18e1829415b3e5586e68573470b2c85d9f47 [formerly 5af919f5dcfaa3c4bb056c12ed7e7eb66ce59701 [formerly 5af919f5dcfaa3c4bb056c12ed7e7eb66ce59701 [formerly 5af919f5dcfaa3c4bb056c12ed7e7eb66ce59701 [formerly 26728bafee862101c43345930b24a144c6c476fb]]]]]
Former-commit-id: 1a78ee08d8f06190c43868a4e822fb921a26df0f [formerly 83bc0019b5a2d4d25ac3917de9b83b57565a326d]
Former-commit-id: 61beb873d6371cba2e35e942f1786eae72e984c0
Former-commit-id: 563a2865fdd20229adb88d87d400b9e75c2186b9
Former-commit-id: db6b16da06cdade969ef99795d3ebbe7a81a0651
Former-commit-id: 20132a50522b9e7c947205c3ac50f8ddb9b93c93 [formerly 252122bfdd9dde2f6a276518d97f2c17ec21c63e]
Former-commit-id: 9279908c50d63a4f01ca41f6cbdbd985d73c4ead
2022-12-11 21:09:45 +01:00
Romain GERARD
c46f93775f fix udp server dying due to BlockedIndefinitelyOnMVar
Former-commit-id: 3b196ad1dd251da10a16ba92c6b406dd82bc14a2
Former-commit-id: 22ff60708b7918aecd12d6e6d38356c63bb5a567 [formerly c4e7cd099079d7728cf28c2d08e068a5995850c9] [formerly f6cf0c8536ef624a6252bfabd870740614a9677a [formerly 261f59a6a33f78d86b7d555905cf9a55ec2eedeb [formerly e6f63f7fc005ad2dab36b304114d2568c2d63cd4] [formerly e6f63f7fc005ad2dab36b304114d2568c2d63cd4 [formerly e6f63f7fc005ad2dab36b304114d2568c2d63cd4 [formerly 4202be87d212a1939cb57502630a4d0eb7ec0c26]]]]]
Former-commit-id: aaa73da1686f57961be57ad6aa8476b3895ecac5 [formerly 704971dfb9ef961f0b43376f221d21d22dd2fffa]
Former-commit-id: b21cd9564e59374361b81e7557c324eae4eb6661
Former-commit-id: f3a7e81c15358d470608639714ec87a65d5bbbf6
Former-commit-id: 52494e1883d95d60395e5d062846a3dcc2e39e7b
Former-commit-id: 845cb1c441d4301fa56dd9ebd71c6a7be158a7bc [formerly 734bf85e5391d55a2243b5857870824b264c36e0]
Former-commit-id: 4b82bfe4dabde5f2101f71f055e0949800d7807b
2022-12-11 21:08:18 +01:00
Romain GÉRARD
0e51c51cfb Fix decoding error in socks5 proxy
Former-commit-id: 9251838d41ccb1e4806bc1450449ff2f4aeb0ad6
Former-commit-id: 7ee0bce8c007f91e0e313bf654217afe69702b70 [formerly d3f0883653a31df2eb6bc175c496251d0b2edea7] [formerly 5054071b3247e7ba1f04047d042ccff1dcfe5c70 [formerly 4016899bb03a38fc0b7c5888d8cd2ff30235e79d [formerly 4016899bb03a38fc0b7c5888d8cd2ff30235e79d [formerly 4016899bb03a38fc0b7c5888d8cd2ff30235e79d [formerly 4a5393b3b78ba039647a8bb9c920b4b1dec9c069]]]]]
Former-commit-id: 5a9ba40b828143d78d72992c0a5c7af4967eaffa [formerly 47aafb56d26a6d879d9d6cecf6fd7696809cca70]
Former-commit-id: 33174940425cb1a5bcefa5cc0b89ac795dbd29ce
Former-commit-id: b0e7b47cbca9ddc0e9b1e0502ecce96f719792fb
Former-commit-id: 04a32b4fec4bce8f6dc6e86ee1548c9798eb6b71
Former-commit-id: 3632695f26111d824378fb54dc63746e27f7d087 [formerly a2acc19e7c559a2a694ef9246dba5040d064ca60]
Former-commit-id: 1e692f7bee881d1981d9fa4153e697db0f0521c9
2020-02-24 21:17:35 +01:00
Romain GERARD
df927db68e Perf improvements: Use default os setting for socket recv buffer size
+ This commit 8e38589efb (diff-8c54fc2d40ad45803c6889efbb0192bbR278) introduce a default fixed size read buffer which is too low for most modern system. Thus it induce a lot of unecessary syscall and cpu usage.
  Use the default OS settings in order to let the user control it with
  ie: /proc/sys/net/ipv4/tcp_rmem


Former-commit-id: 11329e7b2d39a571afcfa1c41b36ca43b8c6ee0c
Former-commit-id: d125be3860d756e8608707db387b9293005d02f8 [formerly cc16d8a3c00a1f2ae215b44b94356f0fd9b06abc] [formerly a4977ba6a35eb7805b01eb9b628786e22842f480 [formerly fd3d401b93d75acf5a20d37598cf115d234b47ad [formerly fd3d401b93d75acf5a20d37598cf115d234b47ad [formerly fd3d401b93d75acf5a20d37598cf115d234b47ad [formerly bec6f99d38ff1e9c53a0a7d71ae6051280508d2e]]]]]
Former-commit-id: 18d8b263236b960c37a41e63491bc287bf584a67 [formerly 9d2ab35501de57b0ba1ee8d18f1fb173a3ca98f6]
Former-commit-id: 00bdbc5e1cd318896a012b76dfdc68964434b43d
Former-commit-id: 86df02c0670359a2bb2429eae4b9b633f5d520ef
Former-commit-id: 59966a7acefbbdc76e580d281f8be7ee2ca1db03
Former-commit-id: d670c023b29c085d4e76809ec539fcd91d6be993 [formerly 2bfa1100e83fd689dd2e2c565fe0838036c1b588]
Former-commit-id: c7c40b2a4e933cbff27713a87d7cc701c1279d32
2020-01-04 13:29:50 +01:00
Romain GÉRARD
e3c9462b6b Update dependencies
Former-commit-id: 07be9bcd252c92551aeac5c658f92f74243105e1
Former-commit-id: b341e9cf83887e8916850743b19530e2ae62bedc [formerly b0dd237c1af7232c65504086f32c543e2969f21c] [formerly 5f84fe76bfaf2ea3150d2524b2d8df3bcc202b42 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly f3baa2138e3ecd75e07adaa8e8390e0d1d3eeed6]]]]]
Former-commit-id: 5a12d3b8f84beb6967fd2273700830e11a919dcb [formerly 23f65ae564b717c82f4f878bebcfb23696470c28]
Former-commit-id: c2dda31dea3d0634127eb6fb4b2557d41c8ee442
Former-commit-id: 886a28263ded5e3f13a642e8739eb4f83c0615f3
Former-commit-id: 937d535ef551e00fe83c69c16f715cd71ebda6dd
Former-commit-id: 4aae739c2c9a054011d743112ab937f750c179c2 [formerly 6a87e7206c043684e0f0c5acf8d83cd5bcfb6014]
Former-commit-id: 58fbcd0de59b4c8ff87286b9b61e90425df334bb
2019-10-24 13:46:58 +02:00
Romain GÉRARD
95a30e712d Allow udp timeout to be specified by the command line
Former-commit-id: 5ba73def38dc116dfc887c25293f8d1dddcd7d0f
Former-commit-id: 09f35f66523a05d69c3d1f864577cc0d6e3489e0 [formerly 965739217f9a07297608dc0b1380b17fa44cd850] [formerly 155253d91655a690b04e5a5801e730af02969673 [formerly 013ca92ae8219e8406cb590ee377fbeaf05c9034 [formerly 013ca92ae8219e8406cb590ee377fbeaf05c9034 [formerly 013ca92ae8219e8406cb590ee377fbeaf05c9034 [formerly c349bdfd8cfd7ff3db5aba7a2c86a16ce8bc13bd]]]]]
Former-commit-id: dc66326fecbfad906e3aadd919c3088bbb724c8c [formerly 8707222b86f066548e3294c402b0225c7db8873a]
Former-commit-id: 4e6f916b34f9f674a90e5b372fe8ebaae7befa8f
Former-commit-id: 95c3ae306b73baa7c6feaacc9c24a6dce4cee15b
Former-commit-id: 2aeca4033fa6611c876e6f64f73adbe7d4ae2a89
Former-commit-id: 28c045517c23a9250fcddad4925a0580201b2700 [formerly 8928f8ea077e8610fc6602ef3a9a356940562f64]
Former-commit-id: 7aaa22e3b15b4c896039036b4178703c320d0028
2019-01-13 17:47:18 +01:00
Romain GÉRARD
b39ce96b5e Add support for forwarding data from stdio #13
Former-commit-id: 14e64f7856faa8b9dba9863b9c19cb4c946ec59a
Former-commit-id: 7da75567618986cabb6988c21e121875c1ad3c1a [formerly a2e77352c857e68e01d12391baf08d3479fd12fe] [formerly f1faa58016cca590bfc52e1ef3f791fc6d0eeccc [formerly fcc6b7ecbd00c933d564805d4adf2e9114bfc6d5 [formerly 30e36d272030b305c561984fe353a1ba2b0db62e] [formerly fcc6b7ecbd00c933d564805d4adf2e9114bfc6d5 [formerly 30e36d272030b305c561984fe353a1ba2b0db62e] [formerly 30e36d272030b305c561984fe353a1ba2b0db62e [formerly adb6021118db2efa77278f15d3523b9ee75a84b3]]]]]
Former-commit-id: fe2e93e58fbbf425c02ccf85bb56ec7119ea365e [formerly ab0492da6e9e63a2f7357eef20e5b43dbc0df810]
Former-commit-id: d9a120c7e6cfb38b3dcb73c5fdb27492f587fbb8
Former-commit-id: e7e62bedc379e337d945fba8e0fc8abe86f7f000
Former-commit-id: 12e2067cf1471e6a5469eb5bdde21a711d6f79e9
Former-commit-id: bd45b8e3895b005582eb0f636206b3265e0cfd78 [formerly 4f169fede9f7d60e38960e640c741c2958fd4830]
Former-commit-id: 0ddce8e35b6f8ada2166916cd66166bc36af75d4
2018-12-28 09:50:52 +01:00
Erèbe
048be2a604 Fix udp server
Former-commit-id: dc6b384be35d0da3d96502aee7a34f03f64069f9
Former-commit-id: 886ee2d95c42ce476a9233c66d266f76edd7c352 [formerly 5938a7b6b407cdc64f0972b4fe0d5cc44af815a6] [formerly 71fe7cf675464eee1ee6c467e6835ea0ae60f30a [formerly 3ed2dbb76a6fe601478b01b60a4b845703eee2d2 [formerly 3ed2dbb76a6fe601478b01b60a4b845703eee2d2 [formerly 3ed2dbb76a6fe601478b01b60a4b845703eee2d2 [formerly c58f0795fa3796cb7873988ebf64361b0860c4b5]]]]]
Former-commit-id: 7bc8c5f4bfa8854ace4360d9d645795964923fdf [formerly ae69d9d2df4790d121871a578a48ac1e3414498f]
Former-commit-id: ce2df65ede7f77d7e0a59ee65e502f88a5c85c6b
Former-commit-id: a69b9bfb8c42a9a9523535e2c225fec06228c4eb
Former-commit-id: efc5bbd6fbe9cd3f550f5767313559a1df65bb77
Former-commit-id: f32be564261055e3499491aff9bc88ca0e897adf [formerly 794c396edb9719688b3040a2f484afa3591059f9]
Former-commit-id: ab8cbe512c3737a53733083fb8f499e6bf589fb1
2016-11-26 16:59:21 +01:00
Erèbe
cde2afd264 Use default-extensions in cabal
Former-commit-id: bc12a795326740f2f7504c77e6efdd4a633d6a8e
Former-commit-id: 206c1715e5164d8485423905848e545eecb2a220 [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 3d9f6a38a164185f31d5610b045744b79190087b]]]]
Former-commit-id: 73593f34778fd5c5be7436189d48b72fc8699a0e
Former-commit-id: b82bb6c8a4286f6c8b37331cecdd3de699771e90
Former-commit-id: fa5ef7ed8fb050a4fb24f18a5101faa10b72e4a2
Former-commit-id: 11138952c09bf43fccc5dc2dc8625c83b4d3dbdb [formerly 382271cf86238cf125c05867c60c53fef176955a]
Former-commit-id: e452e246198248849d76ee37f0e20a6ce507a855
2016-10-09 20:54:08 +02:00
Erèbe
1f923c4943 Refactor to modularize more
Former-commit-id: 1d5ae90a514e575706d5a4ed333cb7bcea613fed
Former-commit-id: 9cfc1936086198e0c437346608794694e0e95b90 [formerly 33e7bbb44e5903ddb90b3fe2c0e5555dbc546bd5 [formerly 33e7bbb44e5903ddb90b3fe2c0e5555dbc546bd5 [formerly 33e7bbb44e5903ddb90b3fe2c0e5555dbc546bd5 [formerly c66b2faff45e0b65779d7fed4d3355d859ae8e34]]]]
Former-commit-id: 4d38d80a6e1bd03be92f0939f269803676094da4
Former-commit-id: ad7ee33491764b8111037c046f64b5c288cfe420
Former-commit-id: 7089db6838c542c2a278992e492a421303b20707
Former-commit-id: 00f00a4f5296725498aeb0daa8b21cfa4568627e [formerly fd688a2c91cc9c927fd8fa32f7e62dc432286d86]
Former-commit-id: 991bfe5b8f959fad26e326877e92f168127f0803
2016-08-27 18:31:32 +02:00
Erèbe
e9b5137afb Socks5 done \O/ 2016-08-24 22:49:33 +02:00
Erèbe
0bd70fd006 Maj ghc 8.0 + add sock5 types 2016-06-13 14:04:01 +02:00
Erèbe
9f668ca95a Minor refactoring 2016-06-01 22:30:49 +02:00
Erèbe
1921d7d03a Maj logging + Add quiet mode 2016-06-01 22:01:23 +02:00
Erèbe
0da678a58d Add proxy handling 2016-05-28 21:17:48 +02:00
Erèbe
ae3d200467 Adding new files 2016-05-28 15:16:12 +02:00