From cb3e72ab1673bc8d1bbf592d8669aed720ff134c Mon Sep 17 00:00:00 2001 From: cmuhammedrafi <103924677+cmuhammedrafi@users.noreply.github.com> Date: Fri, 2 Feb 2024 21:41:01 +0530 Subject: [PATCH] stun configuration added (#4881) Signed-off-by: cmuhammedrafi --- NetworkManager/service/Network.conf.in | 2 +- NetworkManager/service/Network.config | 3 +-- NetworkManager/service/NetworkManager.conf.in | 2 +- NetworkManager/service/NetworkManager.config | 2 +- NetworkManager/service/WiFiManager.conf.in | 2 +- NetworkManager/service/WiFiManager.config | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/NetworkManager/service/Network.conf.in b/NetworkManager/service/Network.conf.in index 41f5838e97..74bb46f4b3 100644 --- a/NetworkManager/service/Network.conf.in +++ b/NetworkManager/service/Network.conf.in @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@") stun = JSON() stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@") -stun.add("port", "19310") +stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@") stun.add("interval", "30") configuration = JSON() diff --git a/NetworkManager/service/Network.config b/NetworkManager/service/Network.config index d97db9a7af..5cb22809f2 100644 --- a/NetworkManager/service/Network.config +++ b/NetworkManager/service/Network.config @@ -19,10 +19,9 @@ map() key(stun) map() kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT}) - kv(port, 19310) + kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT) kv(interval, 30) end() kv(loglevel, 3) end() ans(configuration) - diff --git a/NetworkManager/service/NetworkManager.conf.in b/NetworkManager/service/NetworkManager.conf.in index 4edbd944cb..e81798a7b1 100644 --- a/NetworkManager/service/NetworkManager.conf.in +++ b/NetworkManager/service/NetworkManager.conf.in @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@") stun = JSON() stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@") -stun.add("port", "19310") +stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@") stun.add("interval", "30") configuration = JSON() diff --git a/NetworkManager/service/NetworkManager.config b/NetworkManager/service/NetworkManager.config index 8afdb1ba1b..da2a22c5c2 100644 --- a/NetworkManager/service/NetworkManager.config +++ b/NetworkManager/service/NetworkManager.config @@ -19,7 +19,7 @@ map() key(stun) map() kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT}) - kv(port, 19310) + kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT) kv(interval, 30) end() kv(loglevel, 3) diff --git a/NetworkManager/service/WiFiManager.conf.in b/NetworkManager/service/WiFiManager.conf.in index f4d8e3c963..04af7b23b3 100644 --- a/NetworkManager/service/WiFiManager.conf.in +++ b/NetworkManager/service/WiFiManager.conf.in @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@") stun = JSON() stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@") -stun.add("port", "19310") +stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@") stun.add("interval", "30") configuration = JSON() diff --git a/NetworkManager/service/WiFiManager.config b/NetworkManager/service/WiFiManager.config index d820bb3923..25211f2092 100644 --- a/NetworkManager/service/WiFiManager.config +++ b/NetworkManager/service/WiFiManager.config @@ -19,7 +19,7 @@ map() key(stun) map() kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT}) - kv(port, 19310) + kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT) kv(interval, 30) end() kv(loglevel, 3)