diff options
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index e72ec94..5e33010 100644 --- a/src/socket.c +++ b/src/socket.c @@ -152,6 +152,13 @@ static int bind_socket(const fastd_bind_address_t *addr, bool warn) { goto error; } +#ifdef __ANDROID__ + if (!fastd_android_protect_socket(fd)) { + pr_error("error protecting socket"); + goto error; + } +#endif + return fd; error: |