pufferffish / wireproxy

Wireguard client that exposes itself as a socks5 proxy
ISC License
4.1k stars 235 forks source link

open /dev/null: permission denied #115

Open temporarium opened 2 months ago

temporarium commented 2 months ago

This error started appearing with v1.0.8 (still present with v1.0.9), preventing wireproxy from starting. v1.0.7 works correctly.

Seems to have been introduced by a679716

I have confirmed that /dev/null is as should be: crw-r--r-- 1 root root 1, 3 Apr 23 21:08 /dev/null

and have recreated it (just in case):

# rm /dev/null && mknod /dev/null c 1 3 && chmod 666 /dev/null && /opt/wireproxy/wireproxy -d -c /opt/wireproxy/wireproxy.cfg
open /dev/null: permission denied
cadraincm commented 1 month ago

I was able to reproduce it only when I use wireproxy with the -d flag. not using the -d flag does not cause the issue on my machine

temporarium commented 1 month ago

Thank you for confirming @cadraincm The -d (daemon) mode is obviously a necessity for me. For now, staying on v1.0.7