-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql-otp-20210630 #38
sql-otp-20210630 #38
Conversation
@@ -64,7 +64,11 @@ type ServerConfig struct { | |||
MobileDpd int `json:"mobile_dpd"` | |||
|
|||
SessionTimeout int `json:"session_timeout"` // in seconds | |||
AuthTimeout int `json:"auth_timeout"` // in seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么要删除这一参数
{Typ: cfgStr, Name: "cert_file", Usage: "证书文件", ValStr: "./vpn_cert.pem"}, | ||
{Typ: cfgStr, Name: "cert_key", Usage: "证书密钥", ValStr: "./vpn_cert.key"}, | ||
{Typ: cfgStr, Name: "db_file", Usage: "数据库地址支持sqlite3和mysql以及pgsql:\nsqlite3:./sslvpn.db\nmysql:root:root@tcp(127.0.0.1:3306)/sslvpn?charset=utf8\npostgres:host=127.0.0.1 port=5432 user=postgres password=postgres dbname=sslvpn sslmode=disable\n", ValStr: "sqlite3:./sslvpn.db"}, | ||
{Typ: cfgStr, Name: "cert_file", Usage: "证书文件", ValStr: "./test_vpn_cert.pem"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没必要改
} | ||
return opt | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接 return err
这个证书路径当时为了我测试方便改了下路径。
…------------------ 原始邮件 ------------------
发件人: "bjdgyc/anylink" ***@***.***>;
发送时间: 2021年7月1日(星期四) 上午8:54
***@***.***>;
***@***.******@***.***>;
主题: Re: [bjdgyc/anylink] sql-otp-20210630 (#38)
@bjdgyc commented on this pull request.
In server/base/config.go:
> @@ -23,9 +23,9 @@ var configs = []config{ {Typ: cfgStr, Name: "server_dtls_addr", Usage: "DTLS监听地址", ValStr: ":4433"}, {Typ: cfgStr, Name: "admin_addr", Usage: "后台服务监听地址", ValStr: ":8800"}, {Typ: cfgBool, Name: "proxy_protocol", Usage: "TCP代理协议", ValBool: false}, - {Typ: cfgStr, Name: "db_file", Usage: "数据库地址", ValStr: "./data.db"}, - {Typ: cfgStr, Name: "cert_file", Usage: "证书文件", ValStr: "./vpn_cert.pem"}, - {Typ: cfgStr, Name: "cert_key", Usage: "证书密钥", ValStr: "./vpn_cert.key"}, + {Typ: cfgStr, Name: "db_file", Usage: ***@***.***(127.0.0.1:3306)/sslvpn?charset=utf8\npostgres:host=127.0.0.1 port=5432 user=postgres password=postgres dbname=sslvpn sslmode=disable\n", ValStr: "sqlite3:./sslvpn.db"}, + {Typ: cfgStr, Name: "cert_file", Usage: "证书文件", ValStr: "./test_vpn_cert.pem"},
这个没必要改
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
这里可以直接返回err,我这是个人习惯写nil
…------------------ 原始邮件 ------------------
发件人: "bjdgyc/anylink" ***@***.***>;
发送时间: 2021年7月1日(星期四) 上午9:03
***@***.***>;
***@***.******@***.***>;
主题: Re: [bjdgyc/anylink] sql-otp-20210630 (#38)
@bjdgyc commented on this pull request.
In server/dbdata/db_orm.go:
> } - return opt + return nil
直接 return err
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
并没删,这是我添加了ip和用户错误密码限制次数导致该参数下移
…------------------ 原始邮件 ------------------
发件人: "bjdgyc/anylink" ***@***.***>;
发送时间: 2021年7月1日(星期四) 上午8:53
***@***.***>;
***@***.******@***.***>;
主题: Re: [bjdgyc/anylink] sql-otp-20210630 (#38)
@bjdgyc commented on this pull request.
In server/base/cfg.go:
> @@ -64,7 +64,11 @@ type ServerConfig struct { MobileDpd int `json:"mobile_dpd"` SessionTimeout int `json:"session_timeout"` // in seconds - AuthTimeout int `json:"auth_timeout"` // in seconds
为什么要删除这一参数
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@@ -0,0 +1,191 @@ | |||
package handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件在哪使用的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你的改动比较大,我慢慢看吧
建议重新拉下sql分支,修复下冲突问题吧 |
更新sql支持和otp认证逻辑修改