mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-01 00:26:38 +08:00
26 lines
265 B
Go
26 lines
265 B
Go
package socket
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/go-gost/x/config"
|
|
)
|
|
|
|
func saveConfig() {
|
|
|
|
file := "gost.json"
|
|
|
|
f, err := os.Create(file)
|
|
if err != nil {
|
|
return
|
|
}
|
|
defer f.Close()
|
|
|
|
if err := config.Global().Write(f, "json"); err != nil {
|
|
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|