xptsp / pivpn-docker

Run PiVPN in a Container!
MIT License
8 stars 5 forks source link

Changes made to the server.conf always get overwritten #4

Open LeWimbes opened 3 years ago

LeWimbes commented 3 years ago

Hi, as I only have a DS-Lite connection, I would like to use IPv6 for my VPN. Setting proto to tcp6 isn't possible because the server.conf always gets overwritten.

Tank you

xptsp commented 3 years ago

I wasn't aware that that was an option. Let me add that to the code...

LeWimbes commented 3 years ago

Thank you. Of course there is also udp6. Wouldn't it be the best to generate the server.conf only once as there are more options than the once accessible through the environment variables? That way everyone could still manually edit their server.conf if they want/need to.

xptsp commented 3 years ago

Let me figure out how to implement this....

xptsp commented 3 years ago

I just pushed a commit that creates the server.conf file only if it doesn't exist. Let me know if this solves the problem.

EDIT: I need to rebuild the docker image, which has quite a few changes that I haven't uploaded to Docker. I won't be able do until sometime tomorrow. It's almost my bedtime :p