fixed plugin bug for spawning nodes in a TURN based environment

This commit is contained in:
2023-02-10 17:19:28 +00:00
parent c42bf002de
commit afe4105e3a
3 changed files with 557 additions and 532 deletions

View File

@@ -29,6 +29,7 @@ type Config struct {
GroupTrackContainersPath string
FRPServerPort string
BehindNAT string
AnsibleConfig string
//NetworkInterface string
//NetworkInterfaceIPV6Index int
}
@@ -127,6 +128,7 @@ func SetDefaults() error {
defaults["ServerPort"] = "8088"
defaults["FRPServerPort"] = "0"
defaults["BehindNAT"] = "True"
defaults["AnsibleConfig"] = defaultPath + "p2p/ansible/ansible.cfg"
// Random name generator
hostname, err := os.Hostname()
if err != nil {