Skip to content
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

Closed
wants to merge 1 commit into from
Closed

sql-otp-20210630 #38

wants to merge 1 commit into from

Conversation

ganlei333
Copy link

更新sql支持和otp认证逻辑修改

@@ -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
Copy link
Owner

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"},
Copy link
Owner

Choose a reason for hiding this comment

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

这个没必要改

}
return opt
return nil
Copy link
Owner

Choose a reason for hiding this comment

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

直接 return err

@ganlei333
Copy link
Author

ganlei333 commented Jul 1, 2021 via email

@ganlei333
Copy link
Author

ganlei333 commented Jul 1, 2021 via email

@ganlei333
Copy link
Author

ganlei333 commented Jul 1, 2021 via email

@@ -0,0 +1,191 @@
package handler
Copy link
Owner

Choose a reason for hiding this comment

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

这个文件在哪使用的

Copy link
Owner

@bjdgyc bjdgyc left a comment

Choose a reason for hiding this comment

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

你的改动比较大,我慢慢看吧

@bjdgyc
Copy link
Owner

bjdgyc commented Jul 1, 2021

建议重新拉下sql分支,修复下冲突问题吧

@bjdgyc bjdgyc closed this Jul 1, 2021
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.

None yet

2 participants