pufferffish / wireproxy

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

Parse subnet after Self/Peer Endpoint #14

Closed ElDavoo closed 2 years ago

ElDavoo commented 2 years ago

Addresses like 192.168.1.67/26 will panic the problem with:

ParseAddr("192.168.1.67/26"): unexpected character (at "/26")

the subnet should be parsed

pufferffish commented 2 years ago

Yeah this is intentional, because wireproxy doesn't need to take subnets into account. What are you trying to to do?

ElDavoo commented 2 years ago

I'm writing a python config converter from wireguard syntax to wireproxy syntax so I'm testing out various stuff.

Yeah that's right it's not needed i didn't think about it

pufferffish commented 2 years ago

I'm writing a python config converter from wireguard syntax to wireproxy syntax so I'm testing out various stuff.

Yeah that's right it's not needed i didn't think about it

That's on my todo list as well. If you wouldn't mind, please share it when you've completed it :D

ElDavoo commented 2 years ago

Err, I didn't write it for publishing (and not gonna improve it) but here you go