🐛 Fixed loopback and real ClientID hostnames

This commit is contained in:
Maxim Lebedev 2022-07-29 01:10:29 +05:00
parent ae615df8c8
commit e61c79136b
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func TestDiscovery(t *testing.T) {
store := new(sync.Map)
testClient, localhostClient := domain.TestClient(t), domain.TestClient(t)
localhostClient.ID, _ = domain.ParseClientID("http://localhost.toby3d.me/")
localhostClient.ID, _ = domain.ParseClientID("http://localhost/")
for _, client := range []*domain.Client{testClient, localhostClient} {
store.Store(path.Join(repository.DefaultPathPrefix, client.ID.String()), client)

View File

@ -107,7 +107,7 @@ func ParseClientID(src string) (*ClientID, error) {
func TestClientID(tb testing.TB) *ClientID {
tb.Helper()
clientID, err := ParseClientID("https://indieauth.example.com/")
clientID, err := ParseClientID("https://example.com/")
if err != nil {
tb.Fatal(err)
}