Skip to content

Commit 76510d0

Browse files
committed
fix dns/skype proxy
1 parent 166121a commit 76510d0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/libproxybound.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,15 @@ int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) {
584584
PDEBUG("bind() sock SOCK_RDM = %d\n",SOCK_RDM);
585585
PDEBUG("bind() sock SOCK_PACKET = %d\n",SOCK_PACKET);
586586
PDEBUG("------------------------------- \n");
587-
PDEBUG("bind: requested SOCK =%d)\n",socktype);
588-
PDEBUG("bind: requested SOCKFAMILY =%d)\n",SOCKFAMILY(*addr));
587+
PDEBUG("bind: requested SOCK =%d\n",socktype);
588+
PDEBUG("bind: requested SOCKFAMILY =%d\n",SOCKFAMILY(*addr));
589589
PDEBUG("------------------------------- \n");
590590
#endif
591591

592592
//Required to proxify the connection
593593
//Type Raw, 0.0.0.0, MSG_PROXY
594-
if ((socktype == SOCK_RAW) && (SOCKFAMILY(*addr) == MSG_PROXY)) {
594+
//if ((socktype == SOCK_RAW) && (SOCKFAMILY(*addr) == MSG_PROXY)) {
595+
if ((SOCKFAMILY(*addr) == MSG_PROXY)) {
595596
if ((ip[0] == '0') && (ip[1] == '.') && (ip[2] == '0') && (ip[3] == '.' ) && (ip[4] == '0') && (ip[5] == '.') && (ip[6] == '0')) {
596597
PDEBUG("bind: bind allowing Raw, 0.0.0.0, MSG_PROXY...\n");
597598
return true_bind(sockfd, addr, addrlen);

0 commit comments

Comments
 (0)