fix code scan alerts
This commit is contained in:
parent
b533e9a490
commit
2ed1e08707
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- ".github/workflows/agent.yml"
|
- ".github/workflows/agent.yml"
|
||||||
|
- ".github/workflows/codeql-analysis.yml"
|
||||||
- ".github/workflows/test-on-pr.yml"
|
- ".github/workflows/test-on-pr.yml"
|
||||||
- "README.md"
|
- "README.md"
|
||||||
- ".goreleaser.yml"
|
- ".goreleaser.yml"
|
||||||
|
@ -322,8 +322,8 @@ func (cp *commonPage) terminal(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
log.Println("NEZHA>> terminal connected", isAgent, c.Request.URL)
|
log.Printf("NEZHA>> terminal connected %t %q", isAgent, c.Request.URL)
|
||||||
defer log.Println("NEZHA>> terminal disconnected", isAgent, c.Request.URL)
|
defer log.Printf("NEZHA>> terminal disconnected %t %q", isAgent, c.Request.URL)
|
||||||
|
|
||||||
if isAgent {
|
if isAgent {
|
||||||
terminal.agentConn = conn
|
terminal.agentConn = conn
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<a href="/oauth2/login" class="ui fluid large nezha-primary-btn submit button">登录</a>
|
<a href="/oauth2/login" class="ui fluid large nezha-primary-btn submit button">登录</a>
|
||||||
<div class="ui message">
|
<div class="ui message">
|
||||||
没有账号? <a href="{{.RegistrationLink}}" target="_blank">注册</a>
|
没有账号? <a href="{{.RegistrationLink}}" target="_blank" rel="noopener noreferrer">注册</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user