Skip to content

Commit

Permalink
fix one more IsUnixSocket check
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberb committed Nov 17, 2023
1 parent 06fcbb1 commit bf477c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func RunSyncV3Server(h http.Handler, bindAddr, destV2Server, tlsCert, tlsKey str

// Block forever
var err error
if strings.HasPrefix(bindAddr, "/") {
if internal.IsUnixSocket(bindAddr) {
logger.Info().Msgf("listening on unix socket %s", bindAddr)
listener := unixSocketListener(bindAddr)
err = http.Serve(listener, srv)
Expand Down

0 comments on commit bf477c1

Please sign in to comment.