From e70ceed2de9aedc8a79ced13eb13e404e17dce02 Mon Sep 17 00:00:00 2001 From: Stefania Date: Fri, 4 May 2018 16:32:55 +0200 Subject: [PATCH] removed references to local web client --- config.ini | 2 -- main.go | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/config.ini b/config.ini index eec98cd7a..fa12c9b2a 100644 --- a/config.ini +++ b/config.ini @@ -6,5 +6,3 @@ regex = usb|acm|com # Regular expression to filter serial port list v = true # show debug logging appName = CreateBridge updateUrl = http://downloads.arduino.cc/ -#updateUrl = http://localhost/ -origins = http://webide.arduino.cc:8080 diff --git a/main.go b/main.go index 58a3c359b..273e5d6fd 100755 --- a/main.go +++ b/main.go @@ -124,22 +124,6 @@ func main() { iniflags.Parse() } - // move CORS to config file compatibility, Vagrant version - if *origins == "" { - log.Println("Patching config.ini for compatibility") - f, err := os.OpenFile(dest+"/"+*configIni, os.O_APPEND|os.O_WRONLY, 0666) - if err != nil { - panic(err) - } - _, err = f.WriteString("\norigins = http://webide.arduino.cc:8080\n") - if err != nil { - panic(err) - } - f.Close() - restart("") - } - //log.SetFormatter(&log.JSONFormatter{}) - log.SetLevel(log.InfoLevel) log.SetOutput(os.Stderr)