Conversation
There was a problem hiding this comment.
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.
|
修改的量挺大的,有些修改与原版不兼容,我就放在 colorwind 分支里了。 |
There was a problem hiding this comment.
go 官方不建议使用相对路径 https://code.google.com/p/go/issues/detail?id=6147
There was a problem hiding this comment.
好的。这个之前没有注意。多谢。。我会修改的。
2014-12-30 19:09 GMT+08:00 bigeagle notifications@github.com:
In hop/common.go
#7 (diff):@@ -19,7 +19,7 @@
package hopimport (
- "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.
1.修复在网络状况不好的情况下,用户重发handleHandshakeAck请求时,造成该监听端口的阻塞。
2.修改部分处理代码,增加VPN健壮性。
功能添加:
2.增加用户数量的支持(最大16bit(65535)。 server.ini :addr 参数控制)。
3.增加不同用户使用不同路由表支持(route.ini)。
4.增加配置文件修改后的自动加载方法(addWatchFile)
5.增加用户超时断开方法