pufferffish / wireproxy

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

Code improvement #16

Closed pufferffish closed 2 years ago

pufferffish commented 2 years ago
PAI5REECHO commented 2 years ago

Maybe make it semi-compatible with wireguard configuation

Came here to an open issue for that specifically. SelfSecretKey, SelfSecretKey, SelfEndpoint, PeerPublicKey, PeerEndpoint & DNS can just be directly read from the PrivateKey, Address, DNS, PublicKey, AllowedIPs & Endpoint of a wg-quick config file directly. Being able to supply the config using 1 config key like WGConfig = .../some/path/wg_quick.conf and/or -wg-config .../some/path/wg_quick.conf as command-line argument would be ideal

fscarmen commented 2 years ago

Maybe make it semi-compatible with wireguard configuation

Came here to an open issue for that specifically. SelfSecretKey, SelfSecretKey, SelfEndpoint, PeerPublicKey, PeerEndpoint & DNS can just be directly read from the PrivateKey, Address, DNS, PublicKey, AllowedIPs & Endpoint of a wg-quick config file directly. Being able to supply the config using 1 config key like WGConfig = .../some/path/wg_quick.conf and/or -wg-config .../some/path/wg_quick.conf as command-line argument would be ideal

It 's very helpful to read the values from the wgcf config file.