mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-02 21:34:12 +00:00
Added address to line script
This commit is contained in:
parent
f5564607a1
commit
bc8150700a
2 changed files with 1 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,4 +6,3 @@
|
|||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
/*.sh
|
||||
|
|
|
@ -936,7 +936,7 @@ jboolean handle_udp(const struct arguments *args, const uint8_t *buffer, uint16_
|
|||
else {
|
||||
// Check for broacast
|
||||
uint32_t broadcast = INADDR_BROADCAST;
|
||||
if (memcmp(&iphdr->saddr, &broadcast, sizeof(broadcast)) == 0) {
|
||||
if (memcmp(&iphdr->daddr, &broadcast, sizeof(broadcast)) == 0) {
|
||||
log_android(ANDROID_LOG_WARN, "UDP broadcast");
|
||||
int on = 1;
|
||||
if (setsockopt(u->socket, SOL_SOCKET, SO_BROADCAST, &on, sizeof(on)))
|
||||
|
|
Loading…
Reference in a new issue