Follow-up fix for fwmark 101b5564c267e673afdea97e24a6bd778939abd8 (#372)

Remove all FwMark settings from client configs (illegal) and QRcode
(also illegal).
This commit is contained in:
Paul Dee
2023-05-24 12:02:07 +02:00
committed by GitHub
parent ac99317ba3
commit cfbdae7abb
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)