diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 14:45:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 14:48:03 +0000 |
commit | e55403ed71282d7bfd8b56df219de3c28a8af064 (patch) | |
tree | 524889e5becb81643bf8741e3082955dca076f09 /src/web/rtc/webrtc.c | |
parent | Releasing debian version 1.47.5-1. (diff) | |
download | netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.tar.xz netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.zip |
Merging upstream version 2.0.3+dfsg:
- does not include dygraphs anymore (Closes: #923993)
- does not include pako anymore (Closes: #1042533)
- does not include dashboard binaries anymore (Closes: #1045145)
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/rtc/webrtc.c')
-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 eb73f0b5e..07cbfc5e6 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++; |