Am I right that QR code generation is somewhat broken in current stable release (all updated installed so far)? Allowed IPs are missing in generated QR, like those IPs from simplest config bellow (192.168.10.128/32 and fd00:10::128/128). In order to finish client configuration in official Android client I have to fill in those manually.
config interface 'vpn'
option proto 'wireguard'
option listen_port '51820'
option private_key 'longkeygoeshere='
list addresses '192.168.10.1/24'
list addresses 'fd00:10::1/64'
config wireguard_vpn 'wgclient'
option preshared_key 'longkeygoeshere='
option private_key 'longkeygoeshere='
option public_key 'longkeygoeshere='
list allowed_ips '192.168.10.128/32'
list allowed_ips 'fd00:10::128/128'
How would you programmatically determine the correct IP address or DNS server that should be used on the client device? What do you do in cases where the allowed IPs in the peer config is more than a single /32 address?
You either need to add further information prior to generating the QR code or after scanning it on the client device. What the QR code does do, however, is allow the transfer of the 'complex' data like the keys.
There is no need to debate about showing or not showing private key (or any other optional information). Let user decide what he wants to encode - one (or several) check boxes will make many happier.
That's not a debate - as the private key should never be shown, unless it's to move the account, hence my posting a discussion about why there's a misconception about what the QR Code is for. It seems you're under that misconception.
I don't understand this statement. Are you making a Feature Request?
I'm not sure what you're asking here? If the generated QR code were to include an IP address and DNS server for the client device then that information needs to come from somewhere. Either you derive it programmatically from other information (hence my query about how you think that could work in practice) or you manually add it. And if you're doing the latter then does it matter whether you do that before you generate the QR code or after you create the config on the client?