This commit is contained in:
laodaming 2023-10-11 18:10:24 +08:00
parent e77638b0e1
commit 3d000cdc14

View File

@ -24,7 +24,7 @@ func main() {
var c config.Config
fsconfig.StartNacosConfig(*configFile, &c, nil)
c.Port = 9960
server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) {
}))
defer server.Stop()