mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-05-24 00:24:06 +03:00
Follow-up fix for fwmark 101b5564c2
(#372)
Remove all FwMark settings from client configs (illegal) and QRcode (also illegal).
This commit is contained in:
parent
ac99317ba3
commit
cfbdae7abb
3 changed files with 1 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue