Commit Graph

1048 Commits

Author SHA1 Message Date
Loyalsoldier d9125f91af
Fix: gci command for formatting code (#1757)
* Fix: gci command for formatting code
* Chore: format code
2022-05-01 00:47:14 +08:00
秋のかえで 552936674c
Style: formart code by gofumpt 2022-04-07 00:06:46 +08:00
秋のかえで 2332513471
Chore: fix gofumpt lint (#1719) 2022-04-06 23:48:16 +08:00
1ocalhost 64a780bba6
Fix: net.Address type checking (#1629)
Allow zero port for listening port, namely random port.
2022-04-06 13:42:25 +08:00
yuhan6665 7bcb3c901b
Fix client dialer log (#1568)
* Fix client dialer log

Log such as:
tunneling request to tcp:www.google.com:80 via tcp:x.x.x.x:443
the second "tcp" is misleading when using mKcp or quic transport

Remove the second "tcp" and add the correct logging for transport dialer:
- transport/internet/tcp: dialing TCP to tcp:x.x.x.x:443
- transport/internet/quic: dialing quic to udp:x.x.x.x:443

* Update transport/internet/quic/dialer.go

Co-authored-by: 秋のかえで <autmaple@protonmail.com>

Co-authored-by: 秋のかえで <autmaple@protonmail.com>
Co-authored-by: Kslr <kslrwang@gmail.com>
2022-04-06 13:24:43 +08:00
秋のかえで 84c31ba87f
Chore: bump github.com/lucas-clemente/quic-go from 0.26.0 to 0.27.0 (#1716) 2022-04-06 12:59:25 +08:00
dyhkwong 5ce71e0652
Feat: make gRPC dialer accept socket config (#1697) 2022-04-06 12:26:04 +08:00
Shelikhoo 4357719480 apply sockopt rename 2022-01-23 20:33:01 +00:00
Shelikhoo 190a8e7ed7 rename sockopt options: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo 1fc7c5731a rename sockopt options 2022-01-23 20:33:01 +00:00
Shelikhoo 547b4fb49b rewrite sockopt rxtx buf size message for darwin, freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo 16a44f65be add socksopt rxtxbuf for freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo 1a004529d9 apply coding style for keep alive sockopt in freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo 1a35c1dc69 add socksopt rxtxbuf for freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo 7dc8559f1c add socksopt rxtxbuf for windows 2022-01-23 20:33:01 +00:00
Shelikhoo eb0b52fdfa add socksopt bindToDevice, rxtxbuf for linux 2022-01-23 20:33:01 +00:00
Shelikhoo ccab22b863 add force buffer size sockopt option: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo e088086abf add force buffer size sockopt option 2022-01-23 20:33:01 +00:00
Shelikhoo 1019ae36c2 refactor linux socket opts 2022-01-23 20:33:01 +00:00
Shelikhoo 434d8a49a0 add bind to device, socket buf size setting to socket options: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo 84f2d47c74 add bind to device, socket buf size setting to socket options 2022-01-23 20:33:01 +00:00
世界 093a4d6a82
fix error formatting in sockopt 2022-01-16 20:39:29 +00:00
Shelikhoo 84c428c226 adapt style recommendations for keep alive control
From: https://github.com/v2fly/v2ray-core/pull/1484#discussion_r777456773 https://github.com/v2fly/v2ray-core/pull/1484#discussion_r777270291
2022-01-16 13:31:44 +00:00
ValdikSS a0eb84dbff Separate TcpKeepAliveIdle and TcpKeepAliveInterval check logic 2022-01-16 13:31:44 +00:00
Shelikhoo 1e98e0ae92 fix error introduced by rebase 2022-01-03 15:55:18 +00:00
Shelikhoo 0f2da63f0c fix lint warnings in packetaddr 2022-01-03 15:55:18 +00:00
Shelikhoo d068b60791 shadowsockets fullcone outbound support 2022-01-03 15:55:18 +00:00
Shelikhoo 690b4924ae add packetaddr support for socks 2022-01-03 15:55:18 +00:00
Shelikhoo ec9b64e5ec Add packet addr dispatcher 2022-01-03 15:55:18 +00:00
Shelikhoo 6ff1cfa253 add Closable to dispatcher interface 2022-01-03 15:55:18 +00:00
Shelikhoo bf8a0b7290 apply dispatcher interface 2022-01-03 15:55:18 +00:00
Shelikhoo ac65036808 refactor UDP dispatcher to support fullcone dispatcher 2022-01-03 15:55:18 +00:00
Shelikhoo 3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
秋のかえで 423d566024
fix typo 2021-12-23 13:14:43 +08:00
Bo He 79f751662c
fix typo (#1475) 2021-12-22 22:51:11 +08:00
世界 fa61371102
Fix log usage 2021-12-12 18:10:21 +08:00
Shelikhoo b960d3f1fb Add tcp transport registration 2021-11-28 22:49:16 +00:00
Shelikhoo 718922b047 use sys/unix instead of syscall
Suggestion from:
https://github.com/v2fly/v2ray-core/pull/1395#issuecomment-974761647
2021-11-28 22:49:02 +00:00
Shelikhoo a47fcffe50 use sys/unix instead of syscall
Suggestion from:
https://github.com/v2fly/v2ray-core/pull/1395#issuecomment-974761647
2021-11-28 22:49:02 +00:00
Shelikhoo 44272fa82f embed macOS const to avoid platform inconsistency(again) 2021-11-28 22:49:02 +00:00
Shelikhoo fb4ad3f5fa embed macOS const to avoid platform inconsistency 2021-11-28 22:49:02 +00:00
Shelikhoo 3e42fc417b fix bug introduced in adding tcp keep alive adjustment 2021-11-28 22:49:02 +00:00
ValdikSS 1a3d6eeca8 Add TCP keep alive support in Windows 2021-11-28 22:49:02 +00:00
ValdikSS dc709f56dd Add TCP keep alive support in MacOS, FreeBSD 2021-11-28 22:49:02 +00:00
ValdikSS 499a0e19cb Add TCP keep alive support in Linux 2021-11-28 22:49:02 +00:00
Shelikhoo 6e7e864f2f Add TCP keep alive idle setting: auto generated 2021-11-28 22:49:02 +00:00
ValdikSS 7563338cc8 Add TCP keep alive idle setting 2021-11-28 22:49:02 +00:00
Loyalsoldier dce8764fd7
Lint: fix lint (#1427)
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
秋のかえで 7413246fb8
Feat: implement set buffer methods in QUIC sysConn (#1404) 2021-11-22 14:13:25 +08:00
朱聖黎 (Zhu Sheng Li) 77b88171d6
fix: readRequest API changed since go1.17 (#1370)
fixed: #1265
2021-11-06 22:09:26 +08:00