Skip to content

Commit

Permalink
Merge pull request #297 from bjdgyc/dev
Browse files Browse the repository at this point in the history
添加otp说明文字
  • Loading branch information
bjdgyc authored Feb 23, 2024
2 parents 2b8ce3e + a650db8 commit 0ff6dbc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
build-args: |
appVer=${{ env.APP_VER }}
commitId=${{ env.commitId }}
tags: bjdgyc/anylink:latest,bjdgyc/anylink:${{ env.APP_VER }}
tags: bjdgyc/anylink:${{ env.APP_VER }},bjdgyc/anylink:latest
#tags: bjdgyc/anylink:${{ env.APP_VER }}

- name: Build deploy binary
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ AnyLink 服务端仅在 CentOS 7、CentOS 8、Ubuntu 18.04、Ubuntu 20.04 测试
>
> 其他问题 [前往查看](doc/question.md)
>
> 默认管理后台访问地址 https://host:8800 默认账号密码 admin 123456
> 默认管理后台访问地址 https://host:8800 https://域名:8800 默认账号密码 admin 123456
>
> 首次使用,请在浏览器访问 https://域名:443 浏览器提示安全后,在客户端输入 【域名:443】 即可
Expand All @@ -87,7 +87,6 @@ cd anylink-deploy
sudo ./anylink

# 默认管理后台访问地址
# 注意该host为anylink的内网ip,不能跟客户端请求的ip一样
# https://host:8800
# 默认账号 密码
# admin 123456
Expand Down
2 changes: 1 addition & 1 deletion server/base/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var configs = []config{
{Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 10},
{Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 22},
{Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460},
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接,0关闭此功能", ValInt: 7200},
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接,0关闭此功能", ValInt: 1800},
{Typ: cfgInt, Name: "session_timeout", Usage: "session过期时间(秒)-用于断线重连,0永不过期", ValInt: 3600},
// {Typ: cfgInt, Name: "auth_timeout", Usage: "auth_timeout", ValInt: 0},
{Typ: cfgInt, Name: "audit_interval", Usage: "审计去重间隔(秒),-1关闭", ValInt: 600},
Expand Down
2 changes: 1 addition & 1 deletion server/conf/server-sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ default_domain = "example.com"
#default_domain = "example.com abc.example.com"

#空闲链接超时时间(秒)-超时后断开链接,0关闭此功能
idle_timeout = 7200
idle_timeout = 1800
#session过期时间,用于断线重连,0永不过期
session_timeout = 3600
auth_timeout = 0
Expand Down
2 changes: 1 addition & 1 deletion server/dbdata/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const accountMail = `<p>您好:</p>
<ul>
<li>请使用OTP软件扫描动态码二维码</li>
<li>然后使用anyconnect客户端进行登陆</li>
<li>登陆密码为 【PIN码+动态码】</li>
<li>登陆密码为 【PIN码+动态码】(中间没有+号)</li>
</ul>
</div>
<p>
Expand Down
2 changes: 1 addition & 1 deletion server/handler/link_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
hClone := w.Header().Clone()
buf := &bytes.Buffer{}
_ = hClone.Write(buf)
base.Trace("LinkTunnel Response Header:", buf.String())
base.Debug("LinkTunnel Response Header:", buf.String())

hj := w.(http.Hijacker)
conn, bufRW, err := hj.Hijack()
Expand Down
2 changes: 1 addition & 1 deletion server/handler/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func notFound(w http.ResponseWriter, r *http.Request) {
// fmt.Println(r.RemoteAddr)
if base.GetLogLevel() == base.LogLevelTrace {
hd, _ := httputil.DumpRequest(r, true)
base.Trace("NotFound: ", string(hd))
base.Trace("NotFound: ", r.RemoteAddr, string(hd))
}

w.WriteHeader(http.StatusNotFound)
Expand Down
3 changes: 2 additions & 1 deletion web/src/pages/user/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@

<el-form-item label="禁用OTP" prop="disable_otp">
<el-switch
v-model="ruleForm.disable_otp">
v-model="ruleForm.disable_otp"
active-text="开启OTP后,用户密码为【PIN码+OTP动态码】(中间没有+号)">
</el-switch>
</el-form-item>

Expand Down

0 comments on commit 0ff6dbc

Please sign in to comment.