Skip to content

Commit 0ff6dbc

Browse files
authored
Merge pull request #297 from bjdgyc/dev
添加otp说明文字
2 parents 2b8ce3e + a650db8 commit 0ff6dbc

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
build-args: |
7676
appVer=${{ env.APP_VER }}
7777
commitId=${{ env.commitId }}
78-
tags: bjdgyc/anylink:latest,bjdgyc/anylink:${{ env.APP_VER }}
78+
tags: bjdgyc/anylink:${{ env.APP_VER }},bjdgyc/anylink:latest
7979
#tags: bjdgyc/anylink:${{ env.APP_VER }}
8080

8181
- name: Build deploy binary

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ AnyLink 服务端仅在 CentOS 7、CentOS 8、Ubuntu 18.04、Ubuntu 20.04 测试
6262
>
6363
> 其他问题 [前往查看](doc/question.md)
6464
>
65-
> 默认管理后台访问地址 https://host:8800 默认账号密码 admin 123456
65+
> 默认管理后台访问地址 https://host:8800 https://域名:8800 默认账号密码 admin 123456
6666
>
6767
> 首次使用,请在浏览器访问 https://域名:443 浏览器提示安全后,在客户端输入 【域名:443】 即可
6868
@@ -87,7 +87,6 @@ cd anylink-deploy
8787
sudo ./anylink
8888

8989
# 默认管理后台访问地址
90-
# 注意该host为anylink的内网ip,不能跟客户端请求的ip一样
9190
# https://host:8800
9291
# 默认账号 密码
9392
# admin 123456

server/base/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var configs = []config{
5858
{Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 10},
5959
{Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 22},
6060
{Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460},
61-
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接,0关闭此功能", ValInt: 7200},
61+
{Typ: cfgInt, Name: "idle_timeout", Usage: "空闲链接超时时间(秒)-超时后断开链接,0关闭此功能", ValInt: 1800},
6262
{Typ: cfgInt, Name: "session_timeout", Usage: "session过期时间(秒)-用于断线重连,0永不过期", ValInt: 3600},
6363
// {Typ: cfgInt, Name: "auth_timeout", Usage: "auth_timeout", ValInt: 0},
6464
{Typ: cfgInt, Name: "audit_interval", Usage: "审计去重间隔(秒),-1关闭", ValInt: 600},

server/conf/server-sample.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ default_domain = "example.com"
7474
#default_domain = "example.com abc.example.com"
7575

7676
#空闲链接超时时间(秒)-超时后断开链接,0关闭此功能
77-
idle_timeout = 7200
77+
idle_timeout = 1800
7878
#session过期时间,用于断线重连,0永不过期
7979
session_timeout = 3600
8080
auth_timeout = 0

server/dbdata/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const accountMail = `<p>您好:</p>
179179
<ul>
180180
<li>请使用OTP软件扫描动态码二维码</li>
181181
<li>然后使用anyconnect客户端进行登陆</li>
182-
<li>登陆密码为 【PIN码+动态码】</li>
182+
<li>登陆密码为 【PIN码+动态码】(中间没有+号)</li>
183183
</ul>
184184
</div>
185185
<p>

server/handler/link_tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
192192
hClone := w.Header().Clone()
193193
buf := &bytes.Buffer{}
194194
_ = hClone.Write(buf)
195-
base.Trace("LinkTunnel Response Header:", buf.String())
195+
base.Debug("LinkTunnel Response Header:", buf.String())
196196

197197
hj := w.(http.Hijacker)
198198
conn, bufRW, err := hj.Hijack()

server/handler/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func notFound(w http.ResponseWriter, r *http.Request) {
119119
// fmt.Println(r.RemoteAddr)
120120
if base.GetLogLevel() == base.LogLevelTrace {
121121
hd, _ := httputil.DumpRequest(r, true)
122-
base.Trace("NotFound: ", string(hd))
122+
base.Trace("NotFound: ", r.RemoteAddr, string(hd))
123123
}
124124

125125
w.WriteHeader(http.StatusNotFound)

web/src/pages/user/List.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@
217217

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

0 commit comments

Comments
 (0)