mirror of
https://github.com/bol-van/zapret2.git
synced 2026-08-28 21:02:17 +04:00
@@ -11,3 +11,4 @@ ipset/zapret-ip*.txt
|
||||
ipset/zapret-ip*.gz
|
||||
ipset/zapret-hosts*.txt
|
||||
ipset/zapret-hosts*.gz
|
||||
.vscode/
|
||||
@@ -1978,7 +1978,9 @@ bool rawsend(const struct sockaddr* dst,uint32_t fwmark,const char *ifout,const
|
||||
ssize_t bytes;
|
||||
int sock=rawsend_socket(dst->sa_family);
|
||||
if (sock==-1) return false;
|
||||
#if defined(BSD) || defined(__linux__)
|
||||
if (!set_socket_fwmark(sock,fwmark)) return false;
|
||||
#endif
|
||||
int salen = dst->sa_family == AF_INET ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6);
|
||||
struct sockaddr_storage dst2;
|
||||
memcpy(&dst2,dst,salen);
|
||||
|
||||
Reference in New Issue
Block a user