Follow-up fix for fwmark 101b5564c2

Remove all FwMark settings from client configs (illegal) and QRcode
(also illegal).
This commit is contained in:
Paul 2023-05-15 19:01:01 +02:00
parent ac99317ba3
commit 48882f37ef
3 changed files with 1 additions and 9 deletions

View file

@ -357,11 +357,9 @@ func GetClient(db store.IStore) echo.HandlerFunc {
return func(c echo.Context) error {
clientID := c.Param("id")
qrCodeIncludeFwMark := c.QueryParam("qrCodeIncludeFwMark")
qrCodeSettings := model.QRCodeSettings{
Enabled: true,
IncludeDNS: true,
IncludeFwMark: qrCodeIncludeFwMark == "true",
IncludeMTU: true,
}
@ -490,7 +488,6 @@ func EmailClient(db store.IStore, mailer emailer.Emailer, emailSubject, emailCon
qrCodeSettings := model.QRCodeSettings{
Enabled: true,
IncludeDNS: true,
IncludeFwMark: true,
IncludeMTU: true,
}
clientData, err := db.GetClientByID(payload.ID, qrCodeSettings)