@@ -229,7 +229,6 @@ func createDefaultConf() error {
// check outbound tcp connectivity
// takes ip:port
func NetCheck(netCheck string) bool {
- logger.Info("Checking internet access")
internet := false
timeout := 3 * time.Second
conn, err := net.DialTimeout("tcp", netCheck, timeout)
@@ -69,6 +69,7 @@ func Retrieve() (structs.StartramRetrieve, error) {
logger.Warn(errmsg)
return retrieve, err
}
+ // pin that ho to the global vars
config.StartramConfig = retrieve
logger.Info(fmt.Sprintf("StarTram info retrieved: %s", string(body)))
return retrieve, nil