fix multicast

This commit is contained in:
PolynomialDivision 2017-12-12 22:05:29 +01:00
parent 8653bc3fcc
commit 9a38f82519
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
config settings network
option broadcast_ip '10.0.0.255'
option broadcast_ip '225.0.0.37'
option broadcast_port '1025'
option multicast '0'
option multicast '1'
option shared_key 'Niiiiiiiiiiiiiik'
option iv 'Niiiiiiiiiiiiiik'

View file

@ -62,7 +62,7 @@ int main(int argc, char **argv) {
char iv[BUFSIZE_DIR];
int multicast = 0;
while ((ch = getopt(argc, argv, "cs:p:i:b:o:h:i:k:v:")) != -1) {
while ((ch = getopt(argc, argv, "cs:p:i:b:o:h:i:k:v:m")) != -1) {
switch (ch) {
case 's':
ubus_socket = optarg;
@ -94,6 +94,7 @@ int main(int argc, char **argv) {
break;
case 'm':
multicast = 1;
break;
default:
break;
}