|
@@ -10,7 +10,6 @@ package main
|
|
|
import (
|
|
|
"errors"
|
|
|
"flag"
|
|
|
- "io/ioutil"
|
|
|
"log"
|
|
|
"net/http"
|
|
|
"os"
|
|
@@ -50,11 +49,13 @@ func ValidateCred(username string, password string) bool {
|
|
|
|
|
|
func cleanup(configFilename string) {
|
|
|
//Save the router record to json file
|
|
|
- js, err := serviceRouter.ExportRouterToJSON()
|
|
|
- if err != nil {
|
|
|
- panic(err)
|
|
|
- }
|
|
|
- ioutil.WriteFile(configFilename, []byte(js), 0755)
|
|
|
+ /*
|
|
|
+ js, err := serviceRouter.ExportRouterToJSON()
|
|
|
+ if err != nil {
|
|
|
+ panic(err)
|
|
|
+ }
|
|
|
+ ioutil.WriteFile(configFilename, []byte(js), 0755)
|
|
|
+ */
|
|
|
|
|
|
//Close the service router
|
|
|
serviceRouter.Close()
|