diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:36:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:36:07 +0000 |
commit | e8c44275b9a1937b5948010a042294d580d36d7c (patch) | |
tree | e87c73e25556c3c9d5442f5ca4ba0cf46c64ec70 /src/web/rtc/webrtc.c | |
parent | Adding upstream version 1.47.5. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 2.0.0.upstream/2.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/web/rtc/webrtc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/web/rtc/webrtc.c b/src/web/rtc/webrtc.c index eb73f0b5..07cbfc5e 100644 --- a/src/web/rtc/webrtc.c +++ b/src/web/rtc/webrtc.c @@ -84,8 +84,8 @@ static struct { bool enabled; char *iceServers[WEBRTC_MAX_ICE_SERVERS]; int iceServersCount; - char *proxyServer; - char *bindAddress; + const char *proxyServer; + const char *bindAddress; struct { SPINLOCK spinlock; @@ -142,10 +142,12 @@ static void webrtc_config_ice_servers(void) { webrtc_base.iceServersCount = i; internal_error(true, "WEBRTC: there are %d default ice servers: '%s'", webrtc_base.iceServersCount, buffer_tostring(wb)); - char *servers = config_get(CONFIG_SECTION_WEBRTC, "ice servers", buffer_tostring(wb)); + const char *servers = config_get(CONFIG_SECTION_WEBRTC, "ice servers", buffer_tostring(wb)); webrtc_base.iceServersCount = 0; - char *s = servers, *e; + char tmp[strlen(servers) + 1]; + strcpy(tmp, servers); + char *s = tmp, *e; while(*s) { if(isspace(*s)) s++; |