chg: [config] bugfix config file path

master v0.1.6
Jean-Louis Huynen 2020-06-19 11:50:54 +02:00
parent e6e4a49f13
commit b333ed9208
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func validPort(port string) bool {
// It reads its content, trims\n and \r, and return []byte
// All errors are Fatal.
func ReadConfigFile(folder string, fileName string) []byte {
f, err := os.OpenFile("./"+folder+"/"+fileName, os.O_RDWR|os.O_CREATE, 0666)
f, err := os.OpenFile(folder+"/"+fileName, os.O_RDWR|os.O_CREATE, 0666)
defer f.Close()
if err != nil {
log.Fatal(err)