Skip to content

Commit

Permalink
fix: http 挂载路由错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyi1998 committed May 21, 2023
1 parent 8bcc800 commit 5712b9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Http/Core.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func ListingHttpManagementServer() {
mux.HandleFunc("/api/bulkVerifyDns", BulkVerifyDns)
mux.HandleFunc("/api/verifyHttp", verifyHttp)
mux.HandleFunc("/api/BulkVerifyHttp", BulkVerifyHttp)
for key := range Core.Config.HTTP.User {
mux.HandleFunc("/"+key+"/", HttpRequestLog)
for _, domain := range Core.Config.HTTP.User {
mux.HandleFunc("/"+domain+"/", HttpRequestLog)
}

log.Println("Http Listing Start...")
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP:
port: 8000
#{"token":"用户对应子域名"}
user: { "admin": "admin" }
user: { "admin": "dnslog" }
consoleDisable: false
Dns:
domain: demo.com

0 comments on commit 5712b9e

Please sign in to comment.