Browse Source

minimal config changes

master
arnaucode 7 years ago
parent
commit
e0aeeb09d1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      config.json
  2. +1
    -1
      handlers.go

+ 1
- 1
config.json

@ -1,5 +1,5 @@
{
"serverIP": "127.0.0.1",
"serverIP": "192.168.1.36",
"serverPort": "3050",
"folder": "files",
"blockedIPs": [

+ 1
- 1
handlers.go

@ -63,5 +63,5 @@ func NewImage(w http.ResponseWriter, r *http.Request) {
fmt.Println(err)
}
fmt.Fprintln(w, config.ServerIP+":"+config.ServerPort+"/images/"+fileName)
fmt.Fprintln(w, "http://"+config.ServerIP+":"+config.ServerPort+"/images/"+fileName)
}

Loading…
Cancel
Save