Sniper91
21b235d033
add timeout to proxy connection reading and writing ( #1791 )
...
Co-authored-by: kalmanzhao <kalmanzhao@tencent.com >
2024-06-19 11:19:46 +02:00
Oleksandr Redko
8236f8d49a
fasthttpproxy: fix doc examples
2023-08-30 14:13:49 +02:00
Pluto
e181af17c7
fasthttpproxy support ipv6 ( #1597 )
...
Co-authored-by: liwengang <liwengang.zz@bytedance.com >
2023-07-21 09:55:22 +02:00
Oleksandr Redko
ffdf59d04c
Enable gofumpt linter; format code gofumpt -w . ( #1576 )
2023-06-13 15:18:59 +02:00
LeoSun
239cce45b1
format : update some codes style ( #1533 )
...
* update some codes style
* update adaptor.go and client.go
* Update fasthttpproxy/http.go
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com >
---------
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com >
2023-04-04 13:48:48 -07:00
Erik Dubbelboer
9c0e39f092
Fix proxy auth bug
...
fixes #1513
2023-03-08 20:13:22 +01:00
Oleksandr Redko
e15a810a98
docs: fix grammar issues and typos in comments ( #1492 )
2023-02-13 10:43:44 +08:00
Oleksandr Redko
f111c7e548
Add missing fasthttp prefix in example usage ( #1487 )
2023-02-10 18:18:30 +08:00
Amzza0x00
f6aac906c8
Fixed an error caused of character when @ > 1 during proxy authentication ( #1452 )
...
* Fixed a error caused by more @ character during proxy authentication
* Fixed a error caused by more @ character during proxy authentication
2022-12-08 15:03:55 +08:00
Aoang
a696949f6c
Deprecate Go 1.15 ( #1379 )
...
* Dropping support for 1.15.
* Replaces Go 1.16 Deprecated functions
* Update test build flag
* Fix import sort and comment
* Update github.com/klauspost/compress to v1.15.9
https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470 ) .
2022-09-15 22:28:25 +03:00
Aoang
ea6052464e
Add Go 1.19 Support ( #1355 )
...
* Update Go Version to Go1.19.x And add cache
* Fix CI Line endings
* Update test CI Go Version to Go1.19.x And add cache
* Update Gosec Security Scanner CI to securego/gosec@v2.12 .0
* Format comment
Go 1.19 adds support for links, lists, and clearer headings in doc comments. As part of this change, gofmt now reformats doc comments to make their rendered meaning clearer. See “Go Doc Comments” for syntax details and descriptions of common mistakes now highlighted by gofmt. As another part of this change, the new package go/doc/comment provides parsing and reformatting of doc comments as well as support for rendering them to HTML, Markdown, and text.
ref: https://tip.golang.org/doc/go1.19
ref: https://tip.golang.org/doc/comment
* Fix doc structure
2022-08-14 11:31:57 +02:00
Erik Dubbelboer
7a5afddf5b
Use %v for errors and %q for strings ( #1262 )
...
Mostly in tests.
2022-04-01 18:11:16 +02:00
Aoang
b85d2a274b
Fix http proxy behavior ( #1221 )
...
Add Host header fix behavior
https://datatracker.ietf.org/doc/html/rfc7230#section-5.4
2022-02-18 10:52:19 +01:00
Erik Dubbelboer
e9db537178
Use %w to wrap errors ( #1175 )
2021-12-13 09:41:34 +01:00
Erik Dubbelboer
0263cae5a2
Fix FasthttpSocksDialer example
2021-08-14 10:28:45 +02:00
Erik Dubbelboer
87fc95849c
Run go test on github actions ( #1047 )
...
* Run go test on github actions
travis-ci.org has stopped.
See also: https://github.com/curl/curl/issues/7150
Downside: github actions don't support ppc64le
* Run less
* delete .travis.yml
* Remove travis + minor lint fixes
2021-06-18 13:36:54 +02:00
peakle
1a7995ba88
format err info ( #989 )
2021-03-05 17:39:17 +01:00
kiyon
f40ea7eb40
Improve socks proxy ( #990 )
...
* Improve documentation about DelClientCookie which related with #951 .
* use proxy.FromURL to support auth
2021-03-05 17:38:59 +01:00
Erik Dubbelboer
00973e5c0a
Don't use %w
...
We support versions of Go that don't have this yet.
2020-11-03 20:43:44 +01:00
Maxim Korolyov
d7752d2a70
fixed default schema for for req url ( #897 )
2020-11-02 22:24:57 +01:00
Maxim Korolyov
9697ccb834
Added httpproxy v2 ( #889 )
...
* httpproxy v2 with improved auth barrier storage and full https proxy support
* fixed package name
* moved back the env proxy
2020-10-29 21:05:59 +01:00
Maxim Korolyov
4eac1ae470
Added proxy from env support ( #885 )
...
* added proxy from env support
* fixed package name
* fixed err wrapping
* evoid 2 err wrapping in the same format
2020-10-25 14:46:54 +01:00
Vitali Pikulik
56775f4d9f
tryDial timeout ( #881 )
...
* Change tryDial to handle timeout correctly
* fasthttpproxy/http.go accepts timeout
* Fix example doc
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com >
* Improve import in httpproxy
* Simplify tryDial
* Cleanup
* Wait for concurrencyCh
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com >
2020-10-03 09:44:36 +02:00
Erik Dubbelboer
571315f30a
Only base64 the proxy auth once
2020-04-23 15:05:56 +02:00
Erik Dubbelboer
54df169029
Add fasthttpproxy.FasthttpHTTPDialer
2020-04-20 18:32:19 +02:00
Erik Dubbelboer
8b0b919f26
Fix FasthttpSocksDialer documentation
2019-09-13 21:47:26 +02:00
Erik Dubbelboer
e5e21db0c3
Reuse the socks5 dialer
...
Fixes https://github.com/valyala/fasthttp/issues/644
2019-09-07 10:13:56 +02:00
Erik Dubbelboer
7529e6b2e5
Add SOCKS5 dialer
...
See: https://github.com/valyala/fasthttp/issues/161
2018-09-05 19:58:53 +03:00