Skip to content

Commit

Permalink
Make client QRCode honour client Use Server DNS setting. (ngoduykha…
Browse files Browse the repository at this point in the history
  • Loading branch information
systemcrash authored Dec 26, 2022
1 parent 82c8fe9 commit 310c834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/jsondb/jsondb.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ func (o *JsonDB) GetClientByID(clientID string, qrCodeSettings model.QRCodeSetti
server, _ := o.GetServer()
globalSettings, _ := o.GetGlobalSettings()
client := client
client.UseServerDNS = qrCodeSettings.IncludeDNS
if !qrCodeSettings.IncludeDNS{
globalSettings.DNSServers = []string{}
}
if !qrCodeSettings.IncludeMTU {
globalSettings.MTU = 0
}
Expand Down

0 comments on commit 310c834

Please sign in to comment.