Skip to content
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

Merged
merged 14 commits into from
Sep 17, 2020
Merged

Feature/rfc 7710 #5781

merged 14 commits into from
Sep 17, 2020

Conversation

fdurand
Copy link
Member

@fdurand fdurand commented Sep 9, 2020

Description

rfc-7710 support

Impacts

DHCP + Portal

Issue

fixes #5638

Delete branch after merge

YES

Checklist

  • Document the feature
  • Add unit tests
  • Add acceptance tests (TestLink)

NEWS file entries

New Features

  • Support for RFC7710-bis

portalURL := "https://" + ConfNet.PortalFQDN + "/api"
options[dhcp.OptionCaptivePortal] = []byte(portalURL)
} else {
portalURL := "https://" + general.Hostname + "." + general.Domain + "/api"
Copy link
Collaborator

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

@@ -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 != "" {
Copy link
Collaborator

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

@extrafu
Copy link
Member

extrafu commented Sep 17, 2020

@fdurand Please rebase and @julsemaan do a final a review and merge after.

@fdurand
Copy link
Member Author

fdurand commented Sep 17, 2020

Rebased

@julsemaan julsemaan merged commit af913d3 into devel Sep 17, 2020
@julsemaan julsemaan deleted the feature/rfc-7710 branch September 17, 2020 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for RFC-7710bis - captive portal detection through DHCP
3 participants