mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Make client QRCode honour client Use Server DNS
setting.
Fixes issue #275
This commit is contained in:
parent
24a0a9f5ee
commit
239d3c0da8
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,9 @@ func (o *JsonDB) GetClientByID(clientID string, qrCodeSettings model.QRCodeSetti
|
||||||
server, _ := o.GetServer()
|
server, _ := o.GetServer()
|
||||||
globalSettings, _ := o.GetGlobalSettings()
|
globalSettings, _ := o.GetGlobalSettings()
|
||||||
client := client
|
client := client
|
||||||
client.UseServerDNS = qrCodeSettings.IncludeDNS
|
if !qrCodeSettings.IncludeDNS{
|
||||||
|
globalSettings.DNSServers = []string{}
|
||||||
|
}
|
||||||
if !qrCodeSettings.IncludeMTU {
|
if !qrCodeSettings.IncludeMTU {
|
||||||
globalSettings.MTU = 0
|
globalSettings.MTU = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue