Skip to content

BUG修改及功能添加#7

Open
colorwind wants to merge 2 commits intobigeagle:masterfrom
colorwind:master
Open

BUG修改及功能添加#7
colorwind wants to merge 2 commits intobigeagle:masterfrom
colorwind:master

Conversation

@colorwind
Copy link

1.修复在网络状况不好的情况下,用户重发handleHandshakeAck请求时,造成该监听端口的阻塞。
2.修改部分处理代码,增加VPN健壮性。

功能添加:

  1. 启动/重启脚本,同时防止进程意外关闭。 vpn.sh 调用 ./vpn.sh start &
    2.增加用户数量的支持(最大16bit(65535)。 server.ini :addr 参数控制)。
    3.增加不同用户使用不同路由表支持(route.ini)。
    4.增加配置文件修改后的自动加载方法(addWatchFile)
    5.增加用户超时断开方法

Copy link
Owner

Choose a reason for hiding this comment

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

this would cause incompability

Copy link
Author

Choose a reason for hiding this comment

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

Primarily for compatibility android. Because AES dynamic key_length is
difficult to coding in java. Therefore using 128 bit.

2014-12-30 16:08 GMT+08:00 bigeagle notifications@github.com:

In hop/cipher.go
#7 (diff):

@@ -33,8 +34,9 @@ const cipherBlockSize = 16

func newHopCipher(key []byte) (*hopCipher, error) {
s := new(hopCipher)

  • key = PKCS5Padding(key, cipherBlockSize)
  • block, err := aes.NewCipher(key)
  • // key = PKCS5Padding(key, cipherBlockSize)
  • key1 := md5.Sum(key)

this would cause incompability


Reply to this email directly or view it on GitHub
https://github.com/bigeagle/gohop/pull/7/files#r22341370.

Copy link
Owner

Choose a reason for hiding this comment

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

有道理,另外这个也可以用于多用户支持,我考虑一下协议。

@bigeagle
Copy link
Owner

修改的量挺大的,有些修改与原版不兼容,我就放在 colorwind 分支里了。

Copy link
Owner

Choose a reason for hiding this comment

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

go 官方不建议使用相对路径 https://code.google.com/p/go/issues/detail?id=6147

Copy link
Author

Choose a reason for hiding this comment

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

好的。这个之前没有注意。多谢。。我会修改的。

2014-12-30 19:09 GMT+08:00 bigeagle notifications@github.com:

In hop/common.go
#7 (diff):

@@ -19,7 +19,7 @@
package hop

import (

  • "github.com/bigeagle/gohop/logging"
  • "../logging"

go 官方不建议使用相对路径 https://code.google.com/p/go/issues/detail?id=6147


Reply to this email directly or view it on GitHub
https://github.com/bigeagle/gohop/pull/7/files#r22344766.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants