fix code scan alerts

This commit is contained in:
naiba 2022-04-18 20:45:07 +08:00
parent b533e9a490
commit 2ed1e08707
3 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ on:
- master
paths-ignore:
- ".github/workflows/agent.yml"
- ".github/workflows/codeql-analysis.yml"
- ".github/workflows/test-on-pr.yml"
- "README.md"
- ".goreleaser.yml"

View File

@ -322,8 +322,8 @@ func (cp *commonPage) terminal(c *gin.Context) {
}
defer conn.Close()
log.Println("NEZHA>> terminal connected", isAgent, c.Request.URL)
defer log.Println("NEZHA>> terminal disconnected", isAgent, c.Request.URL)
log.Printf("NEZHA>> terminal connected %t %q", isAgent, c.Request.URL)
defer log.Printf("NEZHA>> terminal disconnected %t %q", isAgent, c.Request.URL)
if isAgent {
terminal.agentConn = conn

View File

@ -11,7 +11,7 @@
</h2>
<a href="/oauth2/login" class="ui fluid large nezha-primary-btn submit button">登录</a>
<div class="ui message">
没有账号? <a href="{{.RegistrationLink}}" target="_blank">注册</a>
没有账号? <a href="{{.RegistrationLink}}" target="_blank" rel="noopener noreferrer">注册</a>
</div>
</div>
</div>