added base code for plugin system

This commit is contained in:
2021-07-13 23:18:54 +04:00
parent ae2500ed4b
commit 02f72209dc
8 changed files with 67 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ type Config struct {
DefaultDockerFile string
SpeedTestFile string
IPV6Address string
PluginPath string
//NetworkInterface string
//NetworkInterfaceIPV6Index int
}
@@ -86,6 +87,7 @@ func SetDefaults() error {
defaults["DockerContainers"] = defaultPath + "server/docker/containers/"
defaults["SpeedTestFile"] = defaultPath + "p2p/50.bin"
defaults["IPV6Address"] = ""
defaults["PluginPath"] = defaultPath + "plugin/deploy"
//defaults["NetworkInterface"] = "wlp0s20f3"
//defaults["NetworkInterfaceIPV6Index"] = "2"