aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-23 13:45:47 +0100
committercbdev <cb@cbcdn.com>2018-03-23 13:45:47 +0100
commit37f0119fa2a53c44809043846620e266da92d991 (patch)
tree862cc33f62108e16d82784ba783edeb74d08fcbb /backends
parentadba387b9801e99286b9de2cd4c5aeac4e6319ce (diff)
downloadmidimonster-37f0119fa2a53c44809043846620e266da92d991.tar.gz
midimonster-37f0119fa2a53c44809043846620e266da92d991.tar.bz2
midimonster-37f0119fa2a53c44809043846620e266da92d991.zip
Fix bug in universe discovery packet
Diffstat (limited to 'backends')
-rw-r--r--backends/sacn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index a0ac493..fde8d90 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -498,7 +498,7 @@ static void sacn_discovery(size_t fd){
size_t page = 0, pages = (global_cfg.fd[fd].universes / 512) + 1, universes;
struct sockaddr_in discovery_dest = {
.sin_family = AF_INET,
- .sin_port = htobe16(SACN_PORT),
+ .sin_port = htobe16(strtoul(SACN_PORT, NULL, 10)),
.sin_addr.s_addr = htobe32(((uint32_t) 0xefff0000) | 64214)
};