diff options
| author | Melonai <einebeere@gmail.com> | 2021-07-26 14:12:26 +0200 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-07-26 14:12:26 +0200 |
| commit | 7819a23171145e8a626e8357e88446817c8785dc (patch) | |
| tree | f8834b1952583844f62c520ab0d8285b8ec2416f /path.go | |
| parent | 3fe27839f0418d13a42524fd10102d0ef62c05f5 (diff) | |
| download | portgate-7819a23171145e8a626e8357e88446817c8785dc.tar.zst portgate-7819a23171145e8a626e8357e88446817c8785dc.zip | |
Refactor into packages
Diffstat (limited to 'path.go')
| -rw-r--r-- | path.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/path.go b/path.go index 4b60dfe..3aa7816 100644 --- a/path.go +++ b/path.go @@ -1,7 +1,6 @@ -package main +package portgate import ( - "fmt" "net/url" "path" "strconv" @@ -69,9 +68,3 @@ func ParsePathFromReferer(p Path, r string) (Path, error) { ResourcePath: p.ResourcePath, }, nil } - -// MakeUrl creates the URL on the destination host that the user wants to access. -func (p *Path) MakeUrl(targetHost string) string { - // TODO: Figure out what to do with TLS - return fmt.Sprintf("http://%s:%d%s", targetHost, p.DestinationIdentifier, p.ResourcePath) -} |
