mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 13:51:42 +08:00
relay functionality working
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
"time"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/gravitl/netmaker/database"
|
||||
"github.com/gravitl/netmaker/functions"
|
||||
@@ -112,6 +113,7 @@ func ValidateRelay(relay models.RelayRequest) error {
|
||||
}
|
||||
|
||||
func UpdateRelay(network string, oldAddrs []string, newAddrs []string) {
|
||||
time.Sleep(time.Second/4)
|
||||
err := SetNodesDoNotPropagate("no", network, oldAddrs)
|
||||
if err != nil {
|
||||
functions.PrintUserLog("netmaker",err.Error(),1)
|
||||
|
Reference in New Issue
Block a user