Make client QRCode honour client Use Server DNS setting. (#276)
Fixes issue #275
This commit is contained in:
@@ -213,7 +213,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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user