Commit Graph

589 Commits (c89183e6b39c22ab9ead9ad69b8c4600df684d54)

Author SHA1 Message Date
Darien Raymond 7a80409e30
rename alloc to buf
8 years ago
Darien Raymond 605fc49e9e
remove unused APIs.
8 years ago
Darien Raymond 12bce36693
fix test break
8 years ago
Darien Raymond 7d2cf4c0e0
bug fixes
8 years ago
Darien Raymond a6e25b3f67
security options in vmess
8 years ago
Darien Raymond 85163d4b47
more security types in vmess.
8 years ago
Darien Raymond a92df58017
refactor auth reader
8 years ago
Darien Raymond 78b726d4e8
comments
8 years ago
Darien Raymond 919b749578
aead reader and writer
8 years ago
Darien Raymond 8c8f0a53fd
rewrite alloc.buffer
8 years ago
Darien Raymond 4bf8288cc2
remove use of Buffer.Value
8 years ago
Darien Raymond e46bad3f18
format errors
8 years ago
Darien Raymond efb24a4d21
rewrite error lib
8 years ago
Darien Raymond f69f551c99
reduce vmess log
8 years ago
Darien Raymond 14829f67f0
refine outbound proxy handler interface
8 years ago
Darien Raymond 2a37c62e07
remove unnecessary assign
8 years ago
Darien Raymond 9dd4f016b1
gofmt
8 years ago
Darien Raymond f95c322677
rename 'this'
8 years ago
Darien Raymond 6804d8f73a
better handling error from Pipe()
8 years ago
Darien Raymond 30cd9e929d
add exponential backoff as retry logic
8 years ago
Darien Raymond 1bbbb6e3cd
release payload after writting
8 years ago
Darien Raymond ecd0cf2fe2
fix proxy settings in vmess outbound
8 years ago
Darien Raymond 2078f29142
refine error message
8 years ago
Darien Raymond 5a32cd8602
remove large buffer
8 years ago
Darien Raymond 65a49e7fa0
small fixes
8 years ago
Darien Raymond a14795e1e6
optimize udp hub
8 years ago
Darien Raymond ad3f450bce
fix usage of io.EOF
8 years ago
Darien Raymond 9471b5b066
refine dispatcher
8 years ago
Darien Raymond d343cb1ee6
proxy connection
8 years ago
Darien Raymond 68b85cce60
remove unused code
8 years ago
Darien Raymond 5f3f173b5e
shadowsocks client factory
8 years ago
Darien Raymond 369256c82f
include user when dispatch requests in VMess.
8 years ago
Darien Raymond 7a14f646ee
gofmt
8 years ago
Darien Raymond 5a311cbe08
json config parser
8 years ago
Darien Raymond e33b7df34c
remove use of any
8 years ago
Darien Raymond be026870f7
protogen update
8 years ago
Darien Raymond fc6a706166
refactor protos
8 years ago
Darien Raymond 1d13f47f9c
protobuf for stream settings
8 years ago
Darien Raymond af6abfa3e3
update proto generated code
8 years ago
Darien Raymond 91f2a40dae
refine proto package names
8 years ago
Darien Raymond 922e761bef
rename server spec user
8 years ago
Darien Raymond 24e575f2cd
protobuf for vmess
8 years ago
Darien Raymond 7de7588ec2
proto for destination
8 years ago
Darien Raymond c518726910
network proto
8 years ago
Darien Raymond 9ade07db03
remove IsTCP() and IsUDP()
8 years ago
Darien Raymond 8b37edd02d
format log
8 years ago
Darien Raymond d08cba000f
accounts in protobuf
8 years ago
Darien Raymond cdb4c56546
protobuf for net
8 years ago
Darien Raymond e6e0419958
format private annotation
8 years ago
v2ray 07a86f549b
unified import path
8 years ago
v2ray 2268f3d1bc
remove import path restriction
8 years ago
v2ray 39737f6fc1
merge bad configuration error
8 years ago
v2ray 89a876a6d4
rename proxy/internal to proxy/registry
8 years ago
Darien Raymond 667b71aad0 Merge pull request #238 from xiaokangwang/websocket
8 years ago
v2ray 66bb7879e0
handle empty payload in freedom and outbound
8 years ago
Shelikhoo 7259b3363b
Merge branch 'master' into websockwt
8 years ago
v2ray cc92973daf
fix destination from addr
8 years ago
v2ray 07dee80f54
update server
8 years ago
v2ray 4419f1e3d6
introduce address family in v2net
8 years ago
v2ray a9d583b92f
connection session
8 years ago
Shelikhoo 508f79f95f
Advertise WS cap
8 years ago
v2ray bcd27ba36f
option to allow passive connection
8 years ago
v2ray 9e997a5be7
typo
8 years ago
v2ray e6a61930d9
remove use of small buffer
8 years ago
v2ray 443e9d4725
fix a bug in vmess encoding
8 years ago
v2ray 2034d54bab
rename VMessAccount to vmess.Account
8 years ago
v2ray 2049759640
use server spec in vmess
8 years ago
v2ray f871ca63e2
refine error message
8 years ago
v2ray 96ec5cfc58
Fix VMess inbound for empty response
8 years ago
v2ray 6f5b54747e
move encoding to vmess
8 years ago
v2ray 85d6e1ad13
prepend hash
8 years ago
v2ray e13ea7a54f
refine log in vmess
9 years ago
v2ray 2c259165ff
read entire small payload
9 years ago
v2ray 7f661f5215
rename Error to Err
9 years ago
v2ray 67ac925ee7
refactor bytes functions
9 years ago
v2ray 560b429902
Update log
9 years ago
v2ray 20f046af0b fix a race condition issue in VMess inbound
9 years ago
v2ray 71ce8f4416 enable kcp
9 years ago
v2ray 9b6dc6bcea massive refactoring for kcp
9 years ago
Shelikhoo e72a7cb96f
KCP: VMess will call setProxyCap to advertise KCP capacity on init
9 years ago
Shelikhoo 29cb680a4b
KCP: VMess will advertise its KCP capacity
9 years ago
Shelikhoo 6d6158b089
KCP: Vmess will pass its meta to Dial3 and ListenTCP6
9 years ago
v2ray 09f7e8b61e meaningful error message
9 years ago
v2ray d9b59133cc Properly close inbound when no payload
9 years ago
v2ray e732ba62a6 unified config loader
9 years ago
v2ray 83c7e8491c fix conn reuse
9 years ago
v2ray e878973def retry if vmess conn fails
9 years ago
v2ray 50ca869929 organize handler metadata
9 years ago
v2ray a4d76dc394 support using specific address
9 years ago
Darien Raymond a2d8d55ba1 Update io_test.go
9 years ago
v2ray 72fb5a256c send reuse option in header
9 years ago
v2ray b9c88b673b unexpected eof
9 years ago
v2ray dfe1ac1f2b Fix connection reuse
9 years ago
v2ray 9713bf9adf completely fix detour config
9 years ago
v2ray 957eaf38db Assign detour config
9 years ago
v2ray 43f6998d31 discard bad connections
9 years ago
v2ray 0fac2084c7 reusable connection
9 years ago
v2ray b47c1ca609 get rid of annoying firewall warnings
9 years ago
v2ray 3f9cb1136a allow dynamic type of user accounts
9 years ago
v2ray 81cdaa0e4e Unify buffer allocation
9 years ago
v2ray c75d840706 Remove serial.String
9 years ago
v2ray 444808a51a Remove Intxx interfaces
9 years ago
v2ray ab39750ceb Remove serial.Bytes
9 years ago
v2ray fc63f0432c simplify testing
9 years ago
v2ray 47b2fafb32 Shorten StringLiteral
9 years ago
v2ray cfdda19834 Shorten BytesLiteral
9 years ago
v2ray 5b23d25e35 address
9 years ago
v2ray 3ded18a75b initializable apps
9 years ago
v2ray 634c4964cc Massive fixes
9 years ago
v2ray ff210aa67f agressively close stream
9 years ago
v2ray b5f43031d4 refactor alter id generation
9 years ago
v2ray 8a07534586 remove unnecessary package alias
9 years ago
v2ray 67db5830be agreesively close rays
9 years ago
v2ray 8d1f06ebaf clean up on error
9 years ago
v2ray 0bc846f016 Fix ending in vmess reader.
9 years ago
v2ray a7f61af79b fix auth reader
9 years ago
v2ray c20c44526c Fix buffer overrun in vmess
9 years ago
v2ray 7d43952690 tcphub now takes tls config as construtor parameter
9 years ago
v2ray f594f5b606 simplify tcp connection
9 years ago
v2ray 36bf645199 Fix a dead lock issue in VMess
9 years ago
v2ray c11ddace15 fix a buffer bug
9 years ago
v2ray 58530e6920 force chunked stream
9 years ago
v2ray 94eab286c0 introduct Connection interface
9 years ago
v2ray 42907ff2e8 Remove v2net.Packet
9 years ago
v2ray 7db14dad9b releasble user validator
9 years ago
v2ray 6486891b18 comments
9 years ago
v2ray 9e1d0d8c5e update detour config settings
9 years ago
v2ray 7407c8d561 use stream instead of raw chan
9 years ago
v2ray 42b8dbe871 release all readers and writers
9 years ago
v2ray 70f803173a simplify reader/writer interface
9 years ago
v2ray e8023f0d92 releasable writer
9 years ago
v2ray 77ecd1649b fix test break
9 years ago
v2ray ff69ac7a0e Release all references
9 years ago
v2ray c1c22a50d5 remove old commands
9 years ago
v2ray 3ec40eedc1 remove old vmess request
9 years ago
v2ray 547cc75651 Migrate VMessIn with protocol
9 years ago
v2ray 2144c47102 Migrate VMessOut into protocol
9 years ago
v2ray 76ca9de25f refactor protocol
9 years ago
v2ray 59bc881d70 move timestamp generator to protocol
9 years ago
v2ray f0081f5327 remove unused code
9 years ago
v2ray 791ac307a2 Move userset to protocol
9 years ago
v2ray 9f50692d15 auto user creation for dynamic port
9 years ago
v2ray 471b655934 log whole destination in vmess out
9 years ago
v2ray c9750fa3ba prefer pointer over struct
9 years ago
v2ray 6c860d64ad rename destIp to destIP
9 years ago
v2ray 25dfa66822 typos
9 years ago
v2ray c6df0fde19 clean up variable initialization
9 years ago
v2ray 2147ba5ab3 move fundamental interfaces from vmess to common
9 years ago
v2ray e8b0505c01 import comment of package vmess
9 years ago
v2ray d3ff2b3698 chunk stream in vmess
9 years ago
v2ray 2031c13a7f refactor app.Space
9 years ago
v2ray 383eb57487 rename CorruptedPacket to ErrorCorruptedPacket
9 years ago
v2ray f34e253ea3 Rename errors with Error prefix
9 years ago
Darien Raymond 008c285324 move transport methods from net to io
9 years ago
v2ray 494f431c37 remove ReadAllBytes in favor of io.ReadFull
9 years ago
v2ray 1f9bd5f692 rename TCPListener to TCPHub
9 years ago
Darien Raymond 925c06aeed rename transport/listener to hub
9 years ago
v2ray 8ae8b3c9f5 custom tcp listener and connection object
9 years ago
v2ray 9ae258de3d rename
9 years ago
v2ray 01ed2fa889 rename RegisterInboundConnectionConfig to RegisterInboundConfig
9 years ago
v2ray 9fe8178e4a rename InboundConnectionHandler to InboundHandler
9 years ago
v2ray 4817f8ab1f Merge branch 'master' of https://github.com/v2ray/v2ray-core
9 years ago
Darien Raymond 4624de091b remove cache of existing user hashes
9 years ago
v2ray 9f6822411b late set of cmd id
9 years ago
v2ray 2b1441b030 bytes to number methods
9 years ago
v2ray 73c17d9931 more fuzz test
9 years ago
v2ray 42b4764700 revert lock change
9 years ago
v2ray f735663364 check input value nil
9 years ago
v2ray 790d37bf90 checksum for response command
9 years ago
v2ray 9ec238d161 account fuzz test
9 years ago
v2ray 795681c288 fix locking in vmess inbound
9 years ago
v2ray d8f29f4b5e log for detour picking
9 years ago
v2ray f478db2b2e ensure that detour list has not changed
9 years ago
v2ray 2c03641f74 test case for receiver
9 years ago
v2ray 37a9d8ef50 dice.Roll()
9 years ago
Darien Raymond d623b1809d minor fix
9 years ago
Darien Raymond d8c6102638 test case for on demand detour
9 years ago
Darien Raymond d75eeed25d format code
9 years ago
Darien Raymond 85feb725a5 BytesLiteral.All()
9 years ago
v2ray f60747c455 2nd step to reduce number of authentication bits
9 years ago
Darien Raymond 23b6b987ca fix a bug in cmdkey generation
9 years ago
v2ray baaef1dad5 handle switch account command in vmess out
9 years ago
v2ray b0adb24003 handle inbound detour in vmess inbound
9 years ago
v2ray 6eff759b05 more fields in switch account command
9 years ago
v2ray 4dd771170c lazy evaluation of access log
9 years ago
v2ray eec0bb4db4 lazy evaluation of log fields
9 years ago
v2ray dde47290d7 completely remove json folder in v2ray
9 years ago
v2ray 5ceac7a6e2 move host from net/json to net
9 years ago
v2ray e5fa96f814 massive refactoring against json config parsing
9 years ago
v2ray 7881330644 remove unnecessary memory allocation in vmess
9 years ago
v2ray f7a152b871 remove unnecessary memory allocation in id generation
9 years ago
v2ray 48ff2a5ae8 use [16]byte instead of string for faster hashing
9 years ago
Darien Raymond bed5235772 remove proxy/vmess/protocol/user
9 years ago
Darien Raymond dc1fbecdfb remove fuzzing tests
9 years ago
v2ray 349b02084c rewrite hashing logic in vmess
9 years ago
v2ray ea080b2ebf rewrite id hash queue
9 years ago
v2ray 8daea1dc06 close inbound ray when there is an error
9 years ago
v2ray d1fecba6e4 improve timed queue performance
9 years ago
v2ray 242624de96 fix test break
9 years ago
v2ray 4ca43c3121 alternative user ids
9 years ago
v2ray 5b1854f842 simplify connection handler registration
9 years ago
v2ray 350b31cad9 First step to reduce number of bytes for response validation
9 years ago
v2ray b9c3f2cb75 Fix for empty packets
9 years ago
v2ray 7c64093a7a Output debug info when parsing VMess request
9 years ago
v2ray 3e76c3f307 fix a typo
9 years ago
v2ray 1239b1a57b fix buffer usage in vmess out
9 years ago
Darien Raymond e6ad1d8518 format code
9 years ago
Darien Raymond 27b521d2aa fix buffer usage in VMess
9 years ago
v2ray 4271e619fe fixes for mutex usage
9 years ago
v2ray 59a5f832f6 fixes for sync logic
9 years ago
v2ray 56c5302367 close method for point server
9 years ago
v2ray 201481a82c close method for inbound connection handler
9 years ago
v2ray 0780db7999 move connhandler to proxy
9 years ago
v2ray 54ce82fbfa Move unnecessary functions to internal
9 years ago
v2ray 1c4c9bffad Move proxy/common/config to proxy/internal/config
9 years ago
v2ray 3baa1f5bc5 interface for inbound connection handler manager
9 years ago
v2ray 8d6fdd014a dns cache command
9 years ago
v2ray 6543facd51 converting from host to address directly
9 years ago
v2ray 34a0cb0b70 move port out of address
9 years ago
v2ray 1f584f1502 interface for secondary id
9 years ago
v2ray a63670311e use uuid in vmess id
9 years ago
v2ray fed5697dc3 SwitchAccount command
9 years ago
Darien Raymond b6ed26aedf pubsub
9 years ago
Darien Raymond dd81fc6f6a hide space implementations from interfaces
9 years ago
Darien Raymond ed09b4ea6a support domain as host in VMess outbound config.
9 years ago
Darien Raymond af8412175e re-org vmess content
9 years ago
v2ray 8bee0c4a7b cleanup shell/point/config
9 years ago
v2ray e1c58fae2b dns cache
9 years ago
v2ray 15e6e6d80c introduce app.Space
9 years ago
v2ray 32c3565681 typo
9 years ago
v2ray 06f9b65ec4 receiver manager
9 years ago
Darien Raymond 6bb53251e9 handle response command in vmess outbound.
9 years ago
Darien Raymond 11220a4952 split vmess inbound and outbound
9 years ago
Darien Raymond 5003afc85c test case for vmess outbound config
9 years ago
Darien Raymond ae056714db refactor common/net.Port
9 years ago
Darien Raymond fa7c1069bc more update
9 years ago
Darien Raymond 36848af749 leveral serial.String in code
9 years ago
Darien Raymond 3c12469ae5 leverage serial.String in assert
9 years ago
Darien Raymond 7960b97c8e fix test break
9 years ago
Darien Raymond 0a2e4343bc massive refactoring against unit test lib
9 years ago
V2Ray cee85bdf26 Add Port as a type
9 years ago
Darien Raymond cab29a7bc9 breaking change: update the way in vmess response validation
9 years ago
V2Ray 07582c5b60 Move point to shell
9 years ago
V2Ray 10b5f5cc5e Rename vmess in & out file
9 years ago
V2Ray c2904383b3 FIx a bug that mutex is passed by value.
9 years ago
V2Ray 3f0ada1bc8 add response op in vmess protocol
9 years ago
V2Ray 9a88e8696a format code
9 years ago
V2Ray 1b8e100879 validation reader for vmess
9 years ago
V2Ray 3a6844f482 reduce number of iterations of vmess fuzzing test.
9 years ago
V2Ray bd48556b98 Smarter reader generator
9 years ago
V2Ray 2a6f4740c1 fuzzing test for vmess protocol
9 years ago
V2Ray fdc72ed8c9 Move mocked userset to vmess/protocol/user
9 years ago
V2Ray 1d4b541d2f Move mock config to app/config
9 years ago
V2Ray 31fb65b3d8 Remove VMess UDP
9 years ago
V2Ray a46db069fb Refactor AES encryption/decryption
9 years ago
V2Ray f2cf4a1f89 Test case for too-short request
9 years ago
V2Ray 03b8c8f9e8 Port picker
9 years ago
V2Ray 192960b711 Move mocked connection handlers to proxy/testing/mocks
9 years ago
V2Ray 1c09b70931 format code
9 years ago
V2Ray 46c0d457d9 User settings for trusted user
9 years ago
V2Ray b44098d752 Introduce user level
9 years ago
V2Ray 2b45e63607 Move config cache to proxy/common
9 years ago
V2Ray f93b29993b Move connection handler interfaces to proxy/common/connhandler
9 years ago
V2Ray 361a22d74d Move proxy errors to proxy/common/errors
9 years ago
V2Ray fdb41bbd50 Remove call to UTC() which is not necessary.
9 years ago
V2Ray 08328d23fa beginning of http proxy
9 years ago
V2Ray 294376edc0 Remove unused const
9 years ago
V2Ray 58dcfd5e84 Reduce timeout for reading VMess header
9 years ago
V2Ray f474fc32a7 Remove all []byte allocation
9 years ago
V2Ray 96c5d32d59 Remove []byte allocation in vmess
9 years ago
V2Ray 2c710d6b1c Protect from DoS attack
9 years ago
V2Ray a81327c5b9 Fix zero users bug
9 years ago
Claire Raymond 771d0225c7 Refactor vmess config
9 years ago
Claire Raymond f10f08c87d add retry on socks and vmess inbound
9 years ago
V2Ray 4bc91b0215 Fix test
9 years ago
V2Ray 890d185979 Cleanup root directory
9 years ago
V2Ray efb881d73c Remove log level detection during runtime
9 years ago
V2Ray 1d40220d31 Remove error defination
9 years ago
V2Ray 9e078d533d continue to work even if failed to accept connection
9 years ago
V2Ray 37112f737e Log UDP access as well
9 years ago
V2Ray d4f3fc0c0f More accurate hash generation
9 years ago
V2Ray ab151cc053 Don't generate duplicated hash
9 years ago
V2Ray a77f62428a Use Buffer as a writer
9 years ago
V2Ray bcffdf0da5 Simplify code
9 years ago
V2Ray 083b1d4736 Simplify code
9 years ago
V2Ray 055c8f1833 Move goroutine one level above.
9 years ago
V2Ray 03de798a58 Update access log in vmess in
9 years ago
V2Ray fc80d5e279 Access log
9 years ago
V2Ray 746580d566 Use buffer in socks proxy
9 years ago
V2Ray 3cb1951dfc Use []byte in pool instead of buffer
9 years ago
V2Ray 9ee73c4f6b Maintain an internal buffer pool to accelerate allocation
9 years ago
V2Ray 71df5103cd Simplify code
9 years ago
V2Ray 3aca3492eb Increase buffer size in VMessIn
9 years ago
V2Ray e7daa4c21c Add size parameter to transport.ReadFrom
9 years ago
V2Ray 3ba9ee73b9 Increase reading timeout in favor of long connection
9 years ago
V2Ray d2e69ed6f8 Remove unnecessary slicing
9 years ago
V2Ray 3d1a6322bd Remove unnecessary copy in VMess protocol
9 years ago
V2Ray b126c5ce2a Simplify vmess response
9 years ago
V2Ray cd81e5531b reuse outbound connection handler
9 years ago
V2Ray 72b4eeba8b Simpilify configuration files
9 years ago