Skip to content

Commit

Permalink
Fixes using a redirect URL with a specific port duplicating the port …
Browse files Browse the repository at this point in the history
…number on the redirect call
  • Loading branch information
rautio authored and daveshanley committed Jun 4, 2023
1 parent 0208ce1 commit 1b2afd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/root_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ package cmd

import (
"embed"
"net/url"
"os"

"github.com/pb33f/wiretap/shared"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"net/url"
"os"
)

var (
Expand Down Expand Up @@ -148,7 +149,7 @@ var (
pterm.Println()
return nil
}
redirectHost = parsedURL.Host
redirectHost = parsedURL.Hostname()
redirectPort = parsedURL.Port()
redirectScheme = parsedURL.Scheme
redirectBasePath = parsedURL.Path
Expand Down

0 comments on commit 1b2afd9

Please sign in to comment.