summary refs log tree commit diff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.go b/config.go
index 7630e87..f5fec33 100644
--- a/config.go
+++ b/config.go
@@ -45,9 +45,9 @@ func (c *Config) TargetAddress(port int) string {
 }
 
 // MakeUrl creates the URL on the destination host that the user wants to access.
-func (c *Config) MakeUrl(p Path) string {
+func (c *Config) MakeUrl(p Destination) string {
 	// TODO: Figure out what to do with TLS
-	return fmt.Sprintf("http://%s:%d%s", c.targetHost, p.DestinationIdentifier, p.ResourcePath)
+	return fmt.Sprintf("http://%s:%d%s", c.targetHost, p.Port, p.Path)
 }
 
 // CheckKey checks whether the givenKey matches the one in the config.