Skip to content

Commit

Permalink
staging commit to unblock nick - compile failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Jan 3, 2022
1 parent 1e6c770 commit 66c553d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (h *Handler) Reload() <-chan chan error {
}

// Listener creates the TCP listener for web requests.
func (h *Handler) Listener() (net.Listener, error) {
func (h *Handler) useZitiListener() (net.Listener, error) {
level.Info(h.logger).Log("msg", "Start listening for connections", "address", h.options.ListenAddress)

listener, err := net.Listen("tcp", h.options.ListenAddress)
Expand Down
8 changes: 7 additions & 1 deletion web/zitifiedweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/openziti/sdk-golang/ziti"
"golang.org/x/net/netutil"
"net"
"runtime"
"strings"

zitiCfg "github.com/openziti/sdk-golang/ziti/config"
Expand All @@ -30,7 +31,12 @@ var ZitiIdFile string

func init() {
ZitiIdServiceName = "boundprometheus"
ZitiIdFile = "/mnt/v/temp/prometheus/prometheusZitiIdentity.json"

if runtime.GOOS == "windows" {
ZitiIdFile = "v:/temp/prometheus/prometheusZitiIdentity.json"
} else {
ZitiIdFile = "/mnt/v/temp/prometheus/prometheusZitiIdentity.json"
}
}

// Listener creates the TCP listener for web requests.
Expand Down

0 comments on commit 66c553d

Please sign in to comment.