1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
Commit Graph

368 Commits

Author SHA1 Message Date
Kirill Motkov
0401a91ef4 Some code improvements
* Rewrite empty string checks more idiomatically.
* Change strings.ToLower comparisons to strings.EqualFold.
* Rewrite switch statement with only one case as if.
2019-06-28 17:53:44 +03:00
Darien Raymond
3828a463ea
move sniffing request to session 2019-02-23 00:27:21 +01:00
Darien Raymond
1ab94fed79
optimize v2ctl size 2019-02-01 20:08:21 +01:00
Darien Raymond
edd71de1c3
remove dependency on assert lib 2019-01-07 23:27:59 +01:00
Darien Raymond
b52725cf65
DialUDP function 2019-01-05 21:43:22 +01:00
Darien Raymond
3de8389361
rename CloseError() to Interrupt() 2018-12-31 21:25:10 +01:00
Darien Raymond
bea521537e
errors.Combine 2018-12-04 14:17:08 +01:00
Darien Raymond
057e271588
update proto lib 2018-12-01 17:39:51 +01:00
Darien Raymond
3eac22c27d
add missing changes 2018-11-21 14:55:05 +01:00
Darien Raymond
769f770cf7
migrate NetworkList to []Network 2018-11-20 16:58:26 +01:00
Darien Raymond
8a82a3664c
pick IP family by local address in freedom 2018-11-19 21:36:46 +01:00
Darien Raymond
a01fdc29a6
remove NewMultiBufferValue 2018-11-16 11:08:12 +01:00
Darien Raymond
a14fae4b35
fix lint warnings 2018-11-13 23:19:58 +01:00
Darien Raymond
73d3be424b
prototype for balancing rules 2018-11-07 21:08:20 +01:00
Darien Raymond
128a90b98b
move link to transport 2018-11-03 12:36:29 +01:00
Darien Raymond
53870f1ea7
refactor mux client worker 2018-10-25 09:32:03 +02:00
Darien Raymond
284923664a
split worker picker from client manager 2018-10-24 22:34:48 +02:00
Darien Raymond
f122d0e518
update proto generated files 2018-10-24 12:02:48 +02:00
Darien Raymond
9e66f315e6
update mocks 2018-10-23 22:41:27 +02:00
Darien Raymond
4988b5ad9a
update protbuf gen files 2018-10-23 22:36:33 +02:00
Darien Raymond
838f2919ab
move mux to common 2018-10-23 12:21:12 +02:00
Darien Raymond
17e51b277b
move proxy.Dialer to internet.Dialer 2018-10-22 22:12:50 +02:00
Darien Raymond
307aac26b3
simplify dependency resolution 2018-10-22 11:26:22 +02:00
Darien Raymond
9decb3fe36
comments 2018-10-22 08:42:10 +02:00
Darien Raymond
ab9ae703fc
remove config from outbound.Handler 2018-10-22 08:26:03 +02:00
Darien Raymond
c29f1c8cf0
merge duplicated code 2018-10-21 21:27:05 +02:00
Darien Raymond
a5dcb0f13e
refactor dependency resolution 2018-10-21 10:27:13 +02:00
Darien Raymond
cb8e7dc9a0
comments 2018-10-14 08:23:49 +02:00
Darien Raymond
e2bfdec012
rename ReadFrom to Unmarshal 2018-10-14 08:05:23 +02:00
Darien Raymond
d730637239
Require Type() for Feature 2018-10-12 23:57:56 +02:00
Darien Raymond
273342d0b9
move stats and inbound to features directory 2018-10-11 21:14:53 +02:00
Darien Raymond
b6dc31d3fe
first part to move feature interfaces into dedicated directory 2018-10-11 20:43:37 +02:00
Darien Raymond
091fa6ad23
use new errorgen 2018-09-30 23:08:41 +02:00
Darien Raymond
d55fbd7f8d
simplify error creation 2018-09-30 18:39:53 +02:00
Darien Raymond
00ea6e3cb2
update protobuf generated files 2018-09-30 18:39:28 +02:00
Darien Raymond
f9f8c21a07
move framemeta onto stack 2018-09-26 13:01:12 +02:00
Darien Raymond
9d646d6039
support tproxy in tcp connections 2018-09-23 20:14:07 +02:00
Darien Raymond
94b880d060
move session based info into session package 2018-09-18 23:09:54 +02:00
Darien Raymond
383b84e7dd
unified tproxy option 2018-09-17 15:12:58 +02:00
Darien Raymond
d068f357bd
update proto lib 2018-09-14 11:00:59 +02:00
Darien Raymond
b3847fb7c0
MemoryStreamSettings 2018-09-07 14:50:25 +02:00
Darien Raymond
91109f3657
replace channel with pipe in udp conn 2018-09-03 00:56:43 +02:00
Darien Raymond
1be86e6e3a
update activity in ReadMultiBuffer 2018-09-01 21:19:01 +02:00
Darien Raymond
de74460f15
extract logic for write frame 2018-08-31 15:15:40 +02:00
Darien Raymond
eb05a92592
dont start periodic task until necessary 2018-08-29 23:00:01 +02:00
Darien Raymond
54e1bb96cc
introduce in-memory user 2018-08-27 00:11:32 +02:00
Darien Raymond
128ec95218
merge stread reader from mux to crypto 2018-08-23 10:39:53 +02:00
Darien Raymond
4e30ac33d0
reduce delay on passive connections 2018-08-21 23:09:45 +02:00
Darien Raymond
fdb3a7b57d
remove use of buf.NewSize() 2018-08-16 12:05:33 +02:00
Darien Raymond
053fc38d38
refine udp hub api 2018-08-11 22:35:01 +02:00
Darien Raymond
c0fc277551
fix mux closing logic 2018-08-05 18:57:41 +02:00
Darien Raymond
206f52affc
refine buffer interface 2018-07-30 22:45:06 +02:00
Darien Raymond
4b63638dca
update protobuf lib 2018-07-25 00:36:28 +02:00
Darien Raymond
6276bfa508
rename domain override 2018-07-20 13:09:42 +02:00
Darien Raymond
c0e37ef34a
prototype for new sniffing mechanism 2018-07-16 13:47:00 +02:00
Darien Raymond
b05597df3a
fix passive connection in mux. fix #1167 2018-06-27 12:21:22 +02:00
Darien Raymond
ff0ae91b9b
update protobuf generated files 2018-06-26 16:28:54 +02:00
Darien Raymond
9977eadf8c
remove dependency from errors to session 2018-06-25 01:09:02 +02:00
Darien Raymond
b01180b913
fix lint warnings 2018-06-04 14:29:43 +02:00
Darien Raymond
ee0ca6cbd2
fix a deadlock 2018-05-31 13:12:36 +02:00
Darien Raymond
adade2bffd
fix lint warnings 2018-05-31 11:55:11 +02:00
Darien Raymond
daa790582f
update uplink traffic in read multibuffer 2018-05-29 00:47:22 +02:00
Darien Raymond
ac6a0f7511
update activity timer 2018-05-27 14:42:53 +02:00
Darien Raymond
46dbbfff8c
fix reading in udp conn 2018-05-27 13:23:41 +02:00
Darien Raymond
13f3c356ca
unified task package 2018-05-27 13:02:29 +02:00
Darien Raymond
cad07c3a83
faster udp reading 2018-05-27 01:19:05 +02:00
Darien Raymond
fde877e276
fix lint errors 2018-05-26 16:32:55 +02:00
Darien Raymond
67f5292f38
fix lint errors 2018-05-25 23:20:24 +02:00
Darien Raymond
b24e808a8a
fix pipe related tests 2018-05-25 12:50:33 +02:00
Darien Raymond
213f827406
policy for internal buffer size 2018-05-25 12:08:28 +02:00
Darien Raymond
68da956fc4
re-generate code 2018-05-25 11:56:01 +02:00
Darien Raymond
f9c794c795
fix lint errors 2018-04-23 16:42:37 +02:00
Darien Raymond
148a7d064d
simplify buf.BufferedReader 2018-04-21 00:54:53 +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
a8aab30e6b
fix done.Close() in defer 2018-04-18 23:15:57 +02:00
Darien Raymond
8e62134bdf
fix draining in mux 2018-04-18 23:01:57 +02:00
Darien Raymond
be1c175de6
fix lint warnings 2018-04-18 22:35:44 +02:00
Darien Raymond
0c66016d5f
fix a regression that mux doesn't handle passive connection. fixes #1061 2018-04-18 22:13:31 +02:00
Darien Raymond
ef1d9d24cd
fix test break 2018-04-17 00:40:27 +02:00
Darien Raymond
5d23604713
rewrite ray -> pipe 2018-04-17 00:31:10 +02:00
Darien Raymond
d6dc88860b
simplify done api 2018-04-15 20:40:47 +02:00
Darien Raymond
c76d492c0f
stats counter for inbound traffic 2018-04-12 00:10:14 +02:00
Darien Raymond
d2470e2cdb
fix lint errors 2018-04-11 20:17:19 +02:00
Darien Raymond
a320196b77
refine domain socket transport 2018-04-09 17:09:24 +02:00
DarienRaymond
61d9b04ca5
Merge pull request #1019 from v2ray/domainsocket
Implemented Primitive Domain Socket Support described in https://github.com/v2ray/Planning/issues/25
2018-04-09 12:42:42 +02:00
Darien Raymond
83625618ee
re-init maps when they are empty 2018-04-07 23:07:30 +02:00
Darien Raymond
7315b2c647
fix mux test 2018-04-05 21:09:57 +02:00
Darien Raymond
435be61661
fix error handling in mux 2018-04-05 20:16:31 +02:00
Shelikhoo
6d1faf5f6e
Remove staging code 2018-04-05 19:28:30 +08:00
Shelikhoo
c542c043f3
Merge branch 'master' of github.com:v2ray/v2ray-core into domainsocket 2018-04-05 19:11:33 +08:00
Shelikhoo
12012cd4df
Testing and fixs 2018-04-05 19:06:54 +08:00
Shelikhoo
8b881d7eb6
Rename to prevent confusion 2018-04-05 18:47:36 +08:00
Darien Raymond
2b675335bd
properly handle error case 2018-04-05 12:19:57 +02:00
Shelikhoo
d08929a687
finish up dial 2018-04-05 15:25:39 +08:00
Darien Raymond
79c1087311
change status to option 2018-04-04 21:33:33 +02:00
Darien Raymond
75a7e9c7f5
comments 2018-04-04 21:32:40 +02:00
Darien Raymond
90c6113dfc
handle transport errors in mux session 2018-04-04 17:20:45 +02:00
Shelikhoo
176a5c0d44
generalize interface 2018-04-04 18:17:42 +08:00
Shelikhoo
7e96581921
Added integration 2018-04-04 17:12:09 +08:00