loyalsoldier
c6c0030b89
Merge branch 'master' into v5
2020-12-16 12:38:16 +08:00
database64128
0eccf52399
🧦 Fix socks client UDP outbound's wrong destination ( #522 )
...
- When you connect to a non-localhost socks5 server, in the response of a UdpAssociate from a socks5 server, the remote address may be `::` or `0.0.0.0`. The previous behavior is to connect to the remote address in the response, which obviously fails.
- This commit changes the behavior to dial to the outbound server's address when the remote address in the response is `::` or `0.0.0.0`.
- Rename `cmdUDPPort` to `cmdUDPAssociate` for clarity.
2020-12-16 04:23:40 +08:00
Jebbs
7c1ab06206
v5: Remove v2ctl & wv2ray ( #488 )
...
* remove v2ctl, wv2ray
* remove v2ctl, wv2ray build scripts
* remove infra/control/main
* remove !confonly flag
* remove ctlcmd package
* remove Confgi.Override func
* move commands package into main
2020-12-04 22:32:55 +08:00
loyalsoldier
784775f689
Refine code according to golangci-lint results
2020-10-11 19:22:46 +08:00
tnextday
ad3bcd2c07
pass username to inbound.User.Email in http/socks server
2020-03-12 00:42:29 +08:00
Darien Raymond
1ab94fed79
optimize v2ctl size
2019-02-01 20:08:21 +01:00
Darien Raymond
a01fdc29a6
remove NewMultiBufferValue
2018-11-16 11:08:12 +01:00
Darien Raymond
f2f67132a7
refactor socks handshake
2018-11-15 23:37:53 +01:00
Darien Raymond
a20262ef20
allocate buffer on stack
2018-11-15 21:32:27 +01:00
Darien Raymond
6c7dcc35ab
remove buffer.WriteBytes
2018-11-14 22:55:20 +01:00
Darien Raymond
5c5816072e
use buffer for reading user id in socks
2018-11-14 20:23:52 +01:00
Darien Raymond
77c03f0da5
move back to serial
2018-11-03 13:03:02 +01:00
Darien Raymond
58e2ed3381
remove closure on ReadFullFrom
2018-11-02 15:01:33 +01:00
Darien Raymond
54e1bb96cc
introduce in-memory user
2018-08-27 00:11:32 +02:00
Darien Raymond
206f52affc
refine buffer interface
2018-07-30 22:45:06 +02:00
Darien Raymond
ebea255c74
eliminate partial writes
2018-07-28 15:03:40 +02:00
Darien Raymond
4f33540b19
temporary workaround for Tor command in socks.
2018-06-25 13:20:02 +02:00
Darien Raymond
b453190e58
fix lint errors in socks
2018-05-26 02:01:48 +02:00
Darien Raymond
3997d13b97
rename Slice and Slice from to Resize and Advance
2018-04-19 23:48:38 +02:00
Darien Raymond
1425fd2ba9
remove Buffer.Append method
2018-04-19 22:56:55 +02:00
Darien Raymond
08dab81eb2
migrate int to int32
2018-04-02 20:00:50 +02:00
Darien Raymond
4de3f1adc1
change ReadFullFrom to take int32 size
2018-04-02 00:44:47 +02:00
Darien Raymond
e44394ade5
more informational error
2018-03-26 16:56:19 +02:00
Darien Raymond
fda85506c8
reuse buffer
2018-03-09 11:26:00 +01:00
Darien Raymond
af1abf687c
unify all address reading and writing
2018-02-23 23:42:01 +01:00
Darien Raymond
768e30c37b
disable socks 4 when auth is required.
2018-02-23 13:55:56 +01:00
Darien Raymond
0920af171b
remove redundent code
2018-02-22 10:49:06 +01:00
Darien Raymond
1077e33d62
unify address reading in socks and shadowsocks
2018-02-22 10:31:08 +01:00
Darien Raymond
664b840812
send username/password together with initial handshake data in socks client. Fix #785
2017-12-26 23:33:25 +01:00
Darien Raymond
81c4f23691
merge address writing
2017-12-04 00:55:34 +01:00
Darien Raymond
594ec15c09
cleanup buffer usage
2017-11-09 22:33:15 +01:00
Darien Raymond
26818a2602
fix domain length issue for all proxies
2017-10-22 20:17:06 +02:00
Darien Raymond
190adf1872
fix socks client for super long domain
2017-09-19 01:39:33 +02:00
Darien Raymond
9594f76f93
ensure enough buffer for socks header
2017-09-07 22:58:04 +02:00
Darien Raymond
1c856a46ab
step 1 to remove reference to net package
2017-08-29 12:56:57 +02:00
Darien Raymond
6a90ce3c43
comments
2017-04-21 15:36:05 +02:00
Darien Raymond
498c7dafdf
clean udp writer
2017-04-21 14:51:09 +02:00
Darien Raymond
5bfab82c41
refactor
2017-04-18 22:36:43 +02:00
Darien Raymond
d6988f1a63
simplify code
2017-04-16 13:17:35 +02:00
Darien Raymond
b1dfff2fdd
remove 8k buffer pool
2017-04-15 21:19:21 +02:00
Darien Raymond
f506a39d32
multi buffer
2017-04-15 21:07:23 +02:00
Darien Raymond
7c1b3ac1f0
cleanup error messages
2017-04-09 13:30:46 +02:00
Darien Raymond
35248497d2
refactor error messages
2017-04-09 01:43:25 +02:00
Darien Raymond
fc31f9b94c
refactor error interface
2017-04-06 15:13:09 +02:00
Darien Raymond
6363c33790
detect actual address type for domain address type
2017-02-22 10:24:04 +01:00
Darien Raymond
6629b6dd28
fix socks password authentication
2017-01-29 08:25:01 +01:00
Darien Raymond
ca721230e1
split listening settings from inbound proxies and apply context
2017-01-26 20:46:44 +01:00
Darien Raymond
6056cc6638
handle nil error
2017-01-17 10:22:18 +01:00
Darien Raymond
f2a750a019
comment out unused const
2017-01-08 23:31:45 +01:00
Darien Raymond
74938dc428
write back error status when authentication timeout
2017-01-08 23:19:03 +01:00