refactor: ddns (#414)

* refactor ddns

* update webhook
This commit is contained in:
UUBulb
2024-08-24 11:11:06 +08:00
committed by GitHub
parent 64da3c7438
commit eb6dd2855e
17 changed files with 523 additions and 352 deletions

View File

@@ -1,7 +1,6 @@
package controller
import (
"encoding/json"
"fmt"
"html/template"
"io/fs"
@@ -277,7 +276,7 @@ func natGateway(c *gin.Context) {
rpc.NezhaHandlerSingleton.CreateStream(streamId)
defer rpc.NezhaHandlerSingleton.CloseStream(streamId)
taskData, err := json.Marshal(model.TaskNAT{
taskData, err := utils.Json.Marshal(model.TaskNAT{
StreamID: streamId,
Host: natConfig.Host,
})