🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix hardcoded IPv4 literals (#2602)
certunabae5fc946bda
diff --git a/server/server_test.go b/server/server_test.goindex 61d2f78da..4f2c74f83 100644--- a/server/server_test.go+++ b/server/server_test.go@@ -20,7 +20,7 @@ var _ = Describe("AbsoluteURL", func() {Expect(actual).To(Equal("https://myserver.com/share/img/123?a=xyz"))})It("does not override provided schema/host", func() {- r, _ := http.NewRequest("GET", "http://127.0.0.1/rest/ping?id=123", nil)+ r, _ := http.NewRequest("GET", "http://localhost/rest/ping?id=123", nil)actual := AbsoluteURL(r, "http://public.myserver.com/share/img/123", url.Values{"a": []string{"xyz"}})Expect(actual).To(Equal("http://public.myserver.com/share/img/123?a=xyz"))})@@ -35,7 +35,7 @@ var _ = Describe("AbsoluteURL", func() {Expect(actual).To(Equal("https://myserver.com/music/share/img/123?a=xyz"))})It("does not override provided schema/host", func() {- r, _ := http.NewRequest("GET", "http://127.0.0.1/rest/ping?id=123", nil)+ r, _ := http.NewRequest("GET", "http://localhost/rest/ping?id=123", nil)actual := AbsoluteURL(r, "http://public.myserver.com/share/img/123", url.Values{"a": []string{"xyz"}})Expect(actual).To(Equal("http://public.myserver.com/share/img/123?a=xyz"))})@@ -52,7 +52,7 @@ var _ = Describe("AbsoluteURL", func() {Expect(actual).To(Equal("https://myserver.com:8080/music/share/img/123?a=xyz"))})It("does not override provided schema/host", func() {- r, _ := http.NewRequest("GET", "http://127.0.0.1/rest/ping?id=123", nil)+ r, _ := http.NewRequest("GET", "http://localhost/rest/ping?id=123", nil)actual := AbsoluteURL(r, "http://public.myserver.com/share/img/123", url.Values{"a": []string{"xyz"}})Expect(actual).To(Equal("http://public.myserver.com/share/img/123?a=xyz"))})diff --git a/ui/package.json b/ui/package.jsonindex 58420711f..ae5f8dbca 100644--- a/ui/package.json+++ b/ui/package.json@@ -58,7 +58,7 @@"update-workbox": "bin/update-workbox.sh"},"homepage": ".",- "proxy": "http://127.0.0.1:4633/",+ "proxy": "http://localhost:4633/","eslintConfig": {"extends": ["react-app",