ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
3.77k stars 464 forks source link

Feature Request: WGUI_ENDPOINT_ADDRESS to be a fqdn name in qr-code #555

Open 3x3cut0r opened 3 months ago

3x3cut0r commented 3 months ago

Hey, wireguard-ui works pretty well with my local wireguard instance.

however, i run wireguard behind a private connection (NAT) with daily changing IPs. That's why i use a dyndns address or similar. However, when i generate a qr-code, the current IP address is always in the qr-code and i have to change it manually afterwards in the settings on my end device. Which also works.

I would now like to ask whether it is possible to set the fqdn of my dyndns address directly in the qr code. Perhaps with a new ENV like "QR_ENDPOINT_ADDRESS" or something? because setting the WGUI_ENDPOINT_ADDRESS to the fqdn does not work for me. It is still the IP address in the qr-code.

Thanks

VATICAN-PSYCHO commented 1 month ago

All you have to do is to specify you domain name in Endpoint Address (inside Global Settings). Then remember to save your config.

This is the only thing that comes to my mind. Eventually it's getting IP from ENV's or database file.

3x3cut0r commented 1 month ago

Its been a while ... need to test it again ... but for some reason it was not possible to enter the ddns name there. I cannot remember why.