Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/jayme-github/fritzbox_smarthome_exporter

go 1.17

replace github.com/bpicode/fritzctl => github.com/matthiasfraass/fritzctl v1.4.24_mf

require (
github.com/bpicode/fritzctl v1.4.24-0.20210413183853-48944781b59f
github.com/namsral/flag v1.7.4-pre
Expand All @@ -25,5 +27,3 @@ require (
google.golang.org/protobuf v1.21.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

replace github.com/bpicode/fritzctl => github.com/jayme-github/fritzctl v1.4.23-0.20220609211037-25a9f8556e3b
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func main() {
options = append(options, fritz.Certificate(crt))
}

if fbURL.RequestURI() != "/" {
options = append(options, fritz.AuthEndpoint(fbURL.RequestURI()))
}

fritzClient = NewClient(options...)

if err := fritzClient.SafeLogin(); err != nil {
Expand Down