Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

拆分TCP和shadowsocks #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

拆分TCP和shadowsocks #36

wants to merge 2 commits into from

Conversation

rc452860
Copy link
Contributor

@rc452860 rc452860 commented Jul 8, 2018

主要提交:拆分TCP和Shadowsocks协议。
附带:driver驱动替换为sstap已签名版本、默认不开启udp多倍发包避免在未安装wincap电脑上报错(照顾小白)、添加启动时ping代理服务器

@@ -85,7 +85,7 @@ export default class ShadowsocksFormatter {
}

for (let i = 0; i < ipBuffer.length; i++) {
buffer[i + (header.version === ShadowsocksHeaderVersion.Domain ? 2 : 1)] = ipBuffer[i];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方您在79行已经把Domain Length算在了ipBuffer里边。所以这里又多加了1

@Srar
Copy link
Owner

Srar commented Jul 8, 2018

谢谢 我会在review后合并

@Srar
Copy link
Owner

Srar commented Jul 8, 2018

我想请问下我注意到tap0901.sys没有被替换还是用没有签名的驱动 这样依然能过Windows签名认证吗?

@rc452860
Copy link
Contributor Author

rc452860 commented Jul 8, 2018

我提交的时候他并没有提示我这个文件有改变。我用BC对比发现这个文件好像是一致的。

@rc452860
Copy link
Contributor Author

rc452860 commented Jul 8, 2018

image
image
抱歉上传截图太慢了

@Srar
Copy link
Owner

Srar commented Jul 8, 2018

好吧 因为我也不是很清楚驱动安装的细节 所以还需要请教你

@Srar
Copy link
Owner

Srar commented Jul 9, 2018

好像您添加功能时候没有遵循TSLint当RP合并以后我会做相应修改以便遵守TSLint.

@@ -271,13 +293,15 @@ async function main() {

// tslint:disable-next-line:ban-types
const filters: Array<Function> = [];
filters.push(require("./filters/TCP").default);
filters.push(require("./tunnel/ShadowsocksTunnel").default);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否可以改成实现interface来作为可变代理类型呢, 如果以后加很多代理类型的话 这样方式会不好判断.

@rc452860
Copy link
Contributor Author

rc452860 commented Jul 9, 2018

好吧,非常抱歉,第一次写typescript,以前没写过这个。js也写的很少。下次提交我尽量按照规范来。我这边正在实现ssh的dynamic port forward。我写完看一下能不能提炼公共的逻辑出来当接口。

@Srar
Copy link
Owner

Srar commented Jul 10, 2018

我最近可能没时间处理pr请谅解( 等有时间后会尽量把pr看好合并

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants