From 7819a23171145e8a626e8357e88446817c8785dc Mon Sep 17 00:00:00 2001 From: Melonai Date: Mon, 26 Jul 2021 14:12:26 +0200 Subject: Refactor into packages --- path.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'path.go') 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) -} -- cgit 1.4.1