Include server host in plugin input (#1514)

This commit is contained in:
WithoutPants
2021-06-21 14:38:44 +10:00
committed by GitHub
parent d7439b4832
commit 8e636545f7
4 changed files with 5 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ import (
func NewClient(provider common.StashServerConnection) *graphql.Client {
portStr := strconv.Itoa(provider.Port)
u, _ := url.Parse("http://localhost:" + portStr + "/graphql")
u, _ := url.Parse("http://" + provider.Host + ":" + portStr + "/graphql")
u.Scheme = provider.Scheme
cookieJar, _ := cookiejar.New(nil)