-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/rfc 7710 #5781
Feature/rfc 7710 #5781
Conversation
go/dhcp/config.go
Outdated
portalURL := "https://" + ConfNet.PortalFQDN + "/api" | ||
options[dhcp.OptionCaptivePortal] = []byte(portalURL) | ||
} else { | ||
portalURL := "https://" + general.Hostname + "." + general.Domain + "/api" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use something more meaningful than /api
?
Or is this path part of the spec.
Using /rfc7710
would make it more explicit when analyzing logs
go/dhcp/config.go
Outdated
@@ -340,6 +355,15 @@ func (d *Interfaces) readConfig() { | |||
options[dhcp.OptionDomainNameServer] = ShuffleDNS(ConfNet) | |||
options[dhcp.OptionRouter] = ShuffleGateway(ConfNet) | |||
options[dhcp.OptionDomainName] = []byte(ConfNet.DomainName) | |||
if portal.SecureRedirect == "enabled" { | |||
if ConfNet.PortalFQDN != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the code of detectPortalURL that we move in util/ to build the URL of the portal so that the logic isn't duplicated
@fdurand Please rebase and @julsemaan do a final a review and merge after. |
717433e
to
4343d59
Compare
Rebased |
Description
rfc-7710 support
Impacts
DHCP + Portal
Issue
fixes #5638
Delete branch after merge
YES
Checklist
NEWS file entries
New Features