masipcat / wireguard-go-docker

Wireguard docker image
https://hub.docker.com/r/masipcat/wireguard-go
GNU General Public License v3.0
182 stars 42 forks source link

Fix issue #18 and cleanup correctly on container shutdown #21

Closed wnienhaus closed 3 years ago

wnienhaus commented 3 years ago

Fixed entrypoint.sh to properly clean-up (run this finish() function) on container shutdown. This ensures the wg0 interface and iptables rules dont linger around (the presence of the lingering wg0 interface actually made starting the container again after a shutdown fail because the interface was found to already exist).

Also, fixed a small typo in the readme for generating public key from private key. (As reported in issue #18)

masipcat commented 3 years ago

Thank you! :)