1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 09:26:21 -05:00
Commit Graph

497 Commits

Author SHA1 Message Date
v2ray
4aadaa7513
use local stack buffer 2016-07-16 13:22:18 +02:00
v2ray
f45fa6e918
allow buffer on local stack 2016-07-16 13:22:08 +02:00
v2ray
8d3da0ed8e
remove unnecessary use of buffer 2016-07-16 12:11:45 +02:00
v2ray
e586f3c127
release buffer on write error 2016-07-16 11:12:53 +02:00
v2ray
17ea740e7e
remove unnecessary use of buffer 2016-07-16 10:45:32 +02:00
v2ray
b6a6c154a3
remove unnecessary use of buffer 2016-07-15 21:15:41 +02:00
v2ray
33e0cfe233
fully allocate buffer pools 2016-07-15 15:17:06 +02:00
v2ray
9e8ed30052
update buffer pool size 2016-07-15 15:16:35 +02:00
v2ray
9523cb3ec3
refine buffer struct 2016-07-15 14:24:20 +02:00
v2ray
6f998fa18b
update ipv6 comparison 2016-07-14 14:25:06 +02:00
v2ray
4c63e9e168
improve fetch performance 2016-07-12 14:32:17 +02:00
v2ray
f5fd76ab85
var -> const 2016-07-11 15:54:19 +02:00
v2ray
96c6012013
refine main thread to capture all logs 2016-07-10 23:11:42 +02:00
v2ray
98cc28a4c4
leverage dice.Roll 2016-06-29 23:53:50 +02:00
v2ray
6915095a0a
typed segments 2016-06-27 22:22:01 +02:00
v2ray
7f661f5215
rename Error to Err 2016-06-27 08:53:35 +02:00
v2ray
67ac925ee7
refactor bytes functions 2016-06-26 22:34:48 +02:00
v2ray
0327113fb8
lock protected user validator 2016-06-22 15:21:40 +02:00
v2ray
6847139ae3
renamed ErrObjectReleased 2016-06-22 15:12:57 +02:00
v2ray
1238304b1d
more settings to kcp 2016-06-20 16:10:47 +02:00
V2Ray Dev
1cd5372a5a
'comment'
Signed-off-by: V2Ray Dev <admin@v2ray.com>
2016-06-19 17:02:20 +02:00
V2Ray Dev
143829e065
'comment'
Signed-off-by: V2Ray Dev <admin@v2ray.com>
2016-06-19 16:55:50 +02:00
v2ray
16f5f81fe9 enlarge small buffer to fix common mtu size 2016-06-18 17:14:30 +02:00
v2ray
bac9304e05 better termination logic 2016-06-18 16:52:02 +02:00
v2ray
9b6dc6bcea massive refactoring for kcp 2016-06-14 22:54:08 +02:00
v2ray
098982d79a adjust error level 2016-06-11 22:54:23 +02:00
v2ray
8b3875050d http response in blackhole 2016-06-10 23:01:17 +02:00
v2ray
e732ba62a6 unified config loader 2016-06-10 22:26:39 +02:00
v2ray
ea8f7e7506 simpilify updateUserHash method 2016-06-04 19:59:23 +02:00
v2ray
a4d76dc394 support using specific address 2016-06-04 00:38:22 +02:00
v2ray
7a082ce63a update test 2016-06-02 21:48:49 +02:00
v2ray
72fb5a256c send reuse option in header 2016-06-02 21:34:25 +02:00
v2ray
2c82f65189 return correct length in ReadFrom 2016-06-01 22:09:12 +02:00
v2ray
202ac9bb56 ReadFrom in BufferedWriter 2016-06-01 21:17:44 +02:00
v2ray
0fac2084c7 reusable connection 2016-05-31 00:21:41 +02:00
v2ray
3a6bf38686 remove validity map 2016-05-31 00:21:29 +02:00
v2ray
9457c4b349 clean up validity map 2016-05-29 22:42:03 +02:00
v2ray
b47c1ca609 get rid of annoying firewall warnings 2016-05-29 16:37:52 +02:00
v2ray
3f9cb1136a allow dynamic type of user accounts 2016-05-28 13:44:11 +02:00
v2ray
46f76e55e5 reorg chan reader 2016-05-25 22:36:52 +02:00
v2ray
3156c4586c Allow data stream passing through http proxy 2016-05-25 09:32:26 +02:00
v2ray
c75d840706 Remove serial.String 2016-05-24 22:41:51 +02:00
v2ray
444808a51a Remove Intxx interfaces 2016-05-24 22:15:46 +02:00
v2ray
ab39750ceb Remove serial.Bytes 2016-05-24 22:09:22 +02:00
v2ray
fc63f0432c simplify testing 2016-05-24 21:55:46 +02:00
v2ray
3582b9d869 move net/testing/assert into assert 2016-05-24 15:29:08 +02:00
v2ray
bbdc692a93 fix test break 2016-05-23 20:32:08 +02:00
v2ray
50957b9973 Fix build break 2016-05-23 20:25:24 +02:00
v2ray
47b2fafb32 Shorten StringLiteral 2016-05-23 20:23:40 +02:00
v2ray
cfdda19834 Shorten BytesLiteral 2016-05-23 20:21:23 +02:00
v2ray
28cf3aa0c7 uint32 2016-05-23 20:16:31 +02:00
v2ray
3d6200dc64 Fix another dead lock in buffered writer 2016-05-22 19:41:48 +02:00
v2ray
e00c424341 Fix dead lock in buffered writer 2016-05-22 19:39:14 +02:00
v2ray
f5f13d801f add a lock to protect reader/writer from panic 2016-05-20 13:56:19 +02:00
v2ray
3b545abe02 dns client implementation 2016-05-15 23:09:28 -07:00
v2ray
634c4964cc Massive fixes 2016-05-12 17:20:07 -07:00
v2ray
3c02805186 realtime logger 2016-05-12 17:18:07 -07:00
v2ray
7e481fe943 rename retry_test package 2016-05-11 23:27:54 -07:00
v2ray
abdcda0a2f reorg common/log 2016-05-11 23:24:41 -07:00
v2ray
c224f67666 actually return nil 2016-05-11 11:54:55 -07:00
v2ray
7fd94e1116 clear logic in v2io.Pipe 2016-05-11 11:54:29 -07:00
v2ray
e9ae553f78 test cases for v2io 2016-05-11 10:54:20 -07:00
v2ray
2739cf2f4a disable access log if log level = none 2016-05-08 23:01:27 -07:00
v2ray
b5f43031d4 refactor alter id generation 2016-05-07 21:07:46 +02:00
v2ray
8a07534586 remove unnecessary package alias 2016-05-07 20:26:29 +02:00
v2ray
73e84b1e06 account 2016-05-07 20:26:03 +02:00
v2ray
31d03a893a test case for port range 2016-05-02 18:56:58 +02:00
v2ray
a538de56de detect end of channel 2016-05-01 17:19:41 +02:00
v2ray
3df7634570 safer for loop 2016-05-01 17:19:09 +02:00
v2ray
0c6a14c27b test case for buffer string 2016-04-29 23:47:42 +02:00
v2ray
5390e8efff reduce memory usage in log 2016-04-29 23:40:28 +02:00
v2ray
dd8ce6f164 releasable log 2016-04-29 13:38:40 +02:00
v2ray
cef5386a21 Log level: none 2016-04-29 11:36:27 +02:00
v2ray
8b71647b9d comments 2016-04-28 22:31:33 +02:00
v2ray
ea6ccb88af actually wait for done 2016-04-28 21:13:51 +02:00
v2ray
d9367efb2d comments 2016-04-26 01:08:41 +02:00
v2ray
a7f40da07a Fix unused variables 2016-04-26 00:46:04 +02:00
v2ray
42907ff2e8 Remove v2net.Packet 2016-04-26 00:13:26 +02:00
v2ray
7db14dad9b releasble user validator 2016-04-25 18:39:30 +02:00
v2ray
7768674df8 revert unintentional change 2016-04-18 18:59:57 +02:00
v2ray
7407c8d561 use stream instead of raw chan 2016-04-18 18:44:10 +02:00
v2ray
70f803173a simplify reader/writer interface 2016-04-12 21:43:13 +02:00
v2ray
308c40553c split BufferPool from buffer.go 2016-04-12 16:52:57 +02:00
v2ray
e8023f0d92 releasable writer 2016-03-24 23:36:18 +08:00
v2ray
760247a4ab fix log test for windows 2016-03-24 23:36:06 +08:00
v2ray
ff69ac7a0e Release all references 2016-03-11 23:51:58 +01:00
v2ray
1b5b599741 agressively cleanup references at release 2016-03-10 16:56:19 +01:00
v2ray
a341cab302 implement releasable interface in v2io 2016-03-10 00:33:14 +01:00
v2ray
c7f6426c88 release interface 2016-03-10 00:33:01 +01:00
v2ray
be90c04deb prevent double release in buffer 2016-03-09 11:34:39 +01:00
v2ray
81bc2ff91d test case for raw encoding 2016-02-27 22:37:14 +01:00
v2ray
547cc75651 Migrate VMessIn with protocol 2016-02-27 17:28:21 +01:00
v2ray
2144c47102 Migrate VMessOut into protocol 2016-02-27 16:41:21 +01:00
v2ray
ef51c600fb Apply buffered reader and writer to socks 2016-02-27 11:02:42 +01:00
v2ray
cba26dabe8 more protocol implementation 2016-02-27 00:05:53 +01:00
v2ray
be09847bbd buffered reader and writer 2016-02-26 23:45:33 +01:00
v2ray
7fa96a4d2c fix build break 2016-02-26 23:18:34 +01:00
v2ray
79171f105a move CryptionReader and Writer into a separate file 2016-02-25 21:53:21 +01:00
v2ray
7b79a768ef protocol and api 2016-02-25 21:50:38 +01:00
v2ray
76ca9de25f refactor protocol 2016-02-25 21:50:10 +01:00
v2ray
59bc881d70 move timestamp generator to protocol 2016-02-25 17:14:49 +01:00
v2ray
791ac307a2 Move userset to protocol 2016-02-25 16:40:43 +01:00
v2ray
9f50692d15 auto user creation for dynamic port 2016-02-25 14:38:41 +01:00
v2ray
9e68c150e1 timestamp in protocol 2016-02-23 22:51:08 +01:00
v2ray
3b39269ca0 format code 2016-02-23 18:38:12 +01:00
v2ray
075423972b remove unnecessary function 2016-02-23 18:25:00 +01:00
v2ray
65819228c1 more chacha20 test 2016-02-23 17:50:07 +01:00
v2ray
769af1ed02 ChaCha20 stream cipher 2016-02-23 17:33:54 +01:00
v2ray
b59f7488fd raw interface 2016-02-21 21:55:50 +01:00
v2ray
8daa427daf generalized protocol interface 2016-02-16 00:42:52 +01:00
v2ray
e47dd29ed1 more doc 2016-02-06 22:28:35 +01:00
v2ray
4bb1d822af prefer Network over string 2016-02-06 18:03:42 +01:00
v2ray
45db388e3f more docs 2016-02-06 18:01:27 +01:00
v2ray
b53fddf229 doc for network 2016-02-06 11:09:53 +01:00
v2ray
0b20d6fbf3 doc for net 2016-02-06 11:01:21 +01:00
v2ray
749ca3deab doc for address 2016-02-06 11:01:18 +01:00
v2ray
dd8c7b94de doc for port 2016-02-06 10:54:41 +01:00
v2ray
e467042fbc simplify port range parsing 2016-02-06 00:13:13 +01:00
v2ray
2d551c97df gofmt -s 2016-02-05 22:06:27 +01:00
v2ray
3a40fa67e1 test case for timed io 2016-02-04 21:31:18 +01:00
v2ray
77359d8047 test case for ipnet 2016-02-04 21:23:51 +01:00
v2ray
d5477e407b test case for NewStringLiteral 2016-02-04 17:55:12 +01:00
v2ray
a0e35673cb test case for string literal 2016-02-04 17:45:16 +01:00
Darien Raymond
b44268d409 fix test break 2016-02-04 10:47:57 +00:00
Darien Raymond
c74bcc9c50 more json test cases 2016-02-04 10:43:04 +00:00
v2ray
01ed094ce6 doc for common 2016-02-03 22:54:02 +01:00
v2ray
d89be624ce doc for dice 2016-02-03 22:49:38 +01:00
v2ray
edd02f7d3c format code 2016-02-03 12:18:52 +01:00
v2ray
2147ba5ab3 move fundamental interfaces from vmess to common 2016-02-03 11:58:42 +01:00
Darien Raymond
50007a9790 reduce number of preallocated buffers 2016-02-02 10:52:23 +00:00
v2ray
526c4558ca simplify validity map 2016-02-01 23:21:44 +01:00
Darien Raymond
3b1f92b7e8 allow multiple UDP incoming packets in freedom 2016-02-01 11:38:38 +00:00
v2ray
d3ff2b3698 chunk stream in vmess 2016-02-01 12:22:29 +01:00
v2ray
6c7a9586d0 Save 1 allocation in shadowsocks 2016-01-31 21:37:00 +01:00
v2ray
97a85f04ce Buffer.Prepend() 2016-01-31 21:24:40 +01:00
v2ray
f34e253ea3 Rename errors with Error prefix 2016-01-30 12:23:56 +01:00
v2ray
e9c784d4bd refactor shadowsocks 2016-01-29 20:54:06 +01:00
Darien Raymond
57ff7ba923 complete implementation of shadowsocks ota 2016-01-29 15:43:45 +00:00
Darien Raymond
7f5184e943 understand OTA bit 2016-01-29 14:09:51 +00:00
Darien Raymond
008c285324 move transport methods from net to io 2016-01-29 13:39:55 +00:00
v2ray
06b92bddcf authenticator 2016-01-29 10:57:52 +01:00
v2ray
494f431c37 remove ReadAllBytes in favor of io.ReadFull 2016-01-28 23:58:23 +01:00
v2ray
dde3f60e30 udp for shadowsocks 2016-01-28 21:30:05 +01:00
v2ray
2e866be181 R.I.P Shadowsocks 2016-01-27 12:46:40 +01:00
Darien Raymond
4624de091b remove cache of existing user hashes 2016-01-25 10:54:03 +00:00
Darien Raymond
1a10f7c4da init rand with time 2016-01-25 10:47:22 +00:00
v2ray
2b1441b030 bytes to number methods 2016-01-24 22:28:44 +01:00
v2ray
790d37bf90 checksum for response command 2016-01-22 17:56:03 +01:00
v2ray
98d99a1fd0 dynamic allocation of inbounds 2016-01-22 16:25:01 +01:00
v2ray
216faf587c string list test 2016-01-22 00:53:51 +01:00
v2ray
37a9d8ef50 dice.Roll() 2016-01-21 22:45:44 +01:00
Darien Raymond
8180145413 more test cases for uuid 2016-01-21 12:11:23 +00:00
Darien Raymond
7f4ff04483 test cases for Equals() 2016-01-21 12:05:28 +00:00
Darien Raymond
d75eeed25d format code 2016-01-21 12:05:16 +00:00
Darien Raymond
85feb725a5 BytesLiteral.All() 2016-01-21 11:52:09 +00:00
Darien Raymond
c78460df1e test case for ipv4 address in ipv6 format 2016-01-21 11:51:53 +00:00
Darien Raymond
23b6b987ca fix a bug in cmdkey generation 2016-01-20 16:45:50 +00:00
v2ray
baaef1dad5 handle switch account command in vmess out 2016-01-20 17:31:43 +01:00
v2ray
573d0a9c29 fix build break 2016-01-19 10:32:20 +01:00
v2ray
6eff759b05 more fields in switch account command 2016-01-19 01:21:07 +01:00
v2ray
65d5c07533 BytesLiteral.String 2016-01-18 12:58:04 +01:00
v2ray
4dd771170c lazy evaluation of access log 2016-01-18 12:31:27 +01:00
v2ray
eec0bb4db4 lazy evaluation of log fields 2016-01-18 12:24:33 +01:00
Darien Raymond
ae8121e633 remove json packages in app folder 2016-01-17 15:20:49 +00:00
v2ray
2d233295e6 simplify stringlist 2016-01-15 15:23:12 +01:00
v2ray
a403859105 move network to net 2016-01-15 14:34:33 +01:00
v2ray
393a64820f simplify port range 2016-01-15 13:39:36 +01:00
v2ray
5ceac7a6e2 move host from net/json to net 2016-01-15 13:17:04 +01:00
v2ray
1f1f79b90a simplify address 2016-01-15 13:16:07 +01:00
v2ray
1958a874cd remove unnecessary memory allocation in uuid generation 2016-01-12 13:38:47 +01:00
v2ray
559eadcaf1 test case for sized queue 2016-01-11 23:04:24 +01:00
v2ray
ea080b2ebf rewrite id hash queue 2016-01-11 22:51:35 +01:00
v2ray
adf5820286 futher reduce memory usage of uuid 2016-01-11 00:22:59 +01:00
v2ray
774095568f lazy initialization of uuid string 2016-01-10 23:00:40 +01:00
v2ray
e0b56528fc leverage sync.Pool for allocation boost 2016-01-10 10:50:36 +01:00
v2ray
4773a8f4ae exit faster in cleanup thread 2016-01-10 10:31:27 +01:00
v2ray
add1197cc9 typo 2016-01-10 10:24:21 +01:00
v2ray
d1fecba6e4 improve timed queue performance 2016-01-10 09:11:46 +01:00
v2ray
89175198ee remove unnecessary cleanup routine 2016-01-09 20:36:23 +01:00
v2ray
ca71c0300f avoid infinite loop in next uuid generation 2016-01-09 01:23:38 +01:00
v2ray
4ca43c3121 alternative user ids 2016-01-09 00:10:57 +01:00
v2ray
43a06e52de init timeout value 2016-01-04 22:57:17 +01:00
v2ray
c74091453c no op when new timeout setting is the same as previous 2016-01-04 22:01:46 +01:00
Darien Raymond
e6ad1d8518 format code 2016-01-04 14:16:52 +00:00
v2ray
8d6fdd014a dns cache command 2015-12-25 01:07:42 +01:00
v2ray
6543facd51 converting from host to address directly 2015-12-17 00:58:45 +01:00
v2ray
34a0cb0b70 move port out of address 2015-12-16 23:53:38 +01:00
v2ray
e2acec745c Add a bytes method to alloc.buffer 2015-12-15 00:53:27 +01:00
Darien Raymond
9e84519134 validity map 2015-12-14 13:14:10 +00:00
v2ray
fed5697dc3 SwitchAccount command 2015-12-12 13:11:49 +01:00
v2ray
47f35b1c3e uuid 2015-12-12 11:32:40 +01:00
v2ray
5b3e84ede6 dns config 2015-12-10 22:08:36 +01:00
Darien Raymond
ed09b4ea6a support domain as host in VMess outbound config. 2015-12-09 11:20:59 +00:00
Darien Raymond
c19341ffab chinaip 2015-12-08 16:31:31 +00:00
v2ray
c54c0218e0 simplify test 2015-12-06 20:38:01 +01:00
v2ray
e1c58fae2b dns cache 2015-12-06 11:00:10 +01:00
v2ray
db7d48e48f Refine log settings 2015-12-05 21:10:14 +01:00
Darien Raymond
3942679371 doc 2015-12-04 12:13:35 +00:00
v2ray
e42510aca5 more literals 2015-12-03 16:57:23 +01:00
Darien Raymond
9b830fc432 update end 2 end test 2015-12-02 23:41:34 +00:00
Darien Raymond
d22fed67ad format code 2015-12-02 20:58:46 +00:00
Darien Raymond
ae056714db refactor common/net.Port 2015-12-02 20:44:01 +00:00
Darien Raymond
fa7c1069bc more update 2015-12-02 16:27:55 +00:00
Darien Raymond
ec31c1fa7f remove common/net unit test back. 2015-12-02 16:18:12 +00:00
Darien Raymond
ab875000e0 fix build break 2015-12-02 15:59:15 +00:00
Darien Raymond
36848af749 leveral serial.String in code 2015-12-02 15:49:34 +00:00
Darien Raymond
3c12469ae5 leverage serial.String in assert 2015-12-02 15:41:19 +00:00
Darien Raymond
091f047ebb add assertions for net utilities 2015-12-02 15:19:39 +00:00
Darien Raymond
0a2e4343bc massive refactoring against unit test lib 2015-12-02 14:27:18 +00:00
V2Ray
cee85bdf26 Add Port as a type 2015-12-02 12:47:54 +01:00
V2Ray
e8e6cf1429 doc for retry 2015-12-02 09:58:00 +01:00
V2Ray
d45b867f98 Rename RetryStrategy to Strategy as suggested by lint 2015-12-02 09:46:19 +01:00
V2Ray
cc61e88eca Log timestamp 2015-11-28 23:13:45 +01:00
V2Ray
6626c22a8d refactor 2015-11-28 20:11:23 +01:00
V2Ray
d48ac4418f config for rule based router 2015-11-21 21:43:40 +01:00
V2Ray
794b5081e3 Simplify swap 2015-11-17 14:26:13 +01:00
V2Ray
346b6125f4 test cases for Destination 2015-11-04 22:48:54 +01:00
V2Ray
a46db069fb Refactor AES encryption/decryption 2015-11-03 21:26:16 +01:00
V2Ray
3f884ed924 More test case for stream logger 2015-11-03 20:30:14 +01:00
V2Ray
144141b3c3 test case for stream logger 2015-11-03 20:24:29 +01:00
V2Ray
d58384ced0 One more test case for retry 2015-11-03 00:12:25 +01:00
V2Ray
60b116fbde Test case for retry 2015-11-03 00:07:15 +01:00
V2Ray
1cec5ac643 Test case for inbound detour network 2015-11-01 23:01:15 +01:00
V2Ray
03b8c8f9e8 Port picker 2015-11-01 21:32:08 +01:00
V2Ray
1c09b70931 format code 2015-10-31 14:08:13 +01:00
V2Ray
46c0d457d9 User settings for trusted user 2015-10-31 09:39:45 +01:00
V2Ray
c56e17fff9 Dokodemo proxy 2015-10-30 15:56:46 +01:00
V2Ray
fdb41bbd50 Remove call to UTC() which is not necessary. 2015-10-29 12:04:14 +01:00
V2Ray
bbc41c5e63 Increase small buffer pool 2015-10-21 22:39:36 +02:00
V2Ray
2c710d6b1c Protect from DoS attack 2015-10-21 21:53:55 +02:00
V2 Ray
9071b3ea10 more comments 2015-10-15 11:15:59 +00:00
V2Ray
2a00e2c6e9 Fix for IPv4 address 2015-10-14 08:43:04 +02:00
V2Ray
3c946daf88 Fix infinate look in retry 2015-10-14 00:57:00 +02:00
V2Ray
7cc8d90f26 test case for wrong auth method 2015-10-13 21:55:12 +02:00
V2Ray
b9b1e3fe61 Fix line separator 2015-10-13 21:45:09 +02:00
V2Ray
3bd4238e88 Line separator 2015-10-13 21:41:53 +02:00
V2Ray
efb881d73c Remove log level detection during runtime 2015-10-13 18:27:29 +02:00
V2Ray
1d40220d31 Remove error defination 2015-10-13 13:55:06 +02:00
V2Ray
93625dd656 Add a retry mechanism 2015-10-13 12:27:50 +02:00
V2Ray
c7c493f20e Don't block main thread when writing access log. 2015-10-11 16:06:27 +02:00
V2Ray
702aaacac3 More doc 2015-10-11 14:46:12 +02:00
V2Ray
2a85c62e14 Use large buffer if download size is huge 2015-10-11 11:43:31 +02:00
V2Ray
a80093a727 Test case for access log 2015-10-10 23:41:45 +02:00
V2Ray
6d5d8b12cd More test case for address 2015-10-10 23:20:47 +02:00
V2Ray
1652b3f7f0 Test case for buffer 2015-10-10 22:15:10 +02:00
V2Ray
d4f3fc0c0f More accurate hash generation 2015-10-10 21:43:40 +02:00
V2Ray
7fe9683f28 Cleanup queue in time 2015-10-10 21:29:37 +02:00
V2Ray
d83ddb4fa7 Release element ealier 2015-10-10 20:52:23 +02:00
V2Ray
a77f62428a Use Buffer as a writer 2015-10-10 20:52:13 +02:00
V2Ray
bf6898539b Buffer pool is mistakenly generate more buffers under normal situation. 2015-10-10 16:50:55 +02:00