From e055ef27e572f9bfe7a52a90ce3a49a5168782a8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 14 Dec 2024 13:48:56 +0800 Subject: [PATCH] :bug: Try to fix the user agent issue --- pkg/internal/services/scraper.go | 2 +- settings.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/internal/services/scraper.go b/pkg/internal/services/scraper.go index c89cbde..1727a03 100644 --- a/pkg/internal/services/scraper.go +++ b/pkg/internal/services/scraper.go @@ -15,7 +15,7 @@ import ( ) // We have to set the User-Agent to this so the sites will respond with opengraph data -const ScrapLinkUserAgent = "FacebookExternalHit/1.1" +const ScrapLinkUserAgent = "facebookexternalhit/1.1" func GetLinkMetaFromCache(target string) (models.LinkMeta, error) { hash := md5.Sum([]byte(target)) diff --git a/settings.toml b/settings.toml index cd09166..8460c57 100644 --- a/settings.toml +++ b/settings.toml @@ -1,7 +1,7 @@ id = "reader01" -bind = "0.0.0.0:8005" -grpc_bind = "0.0.0.0:7005" +bind = "0.0.0.0:8008" +grpc_bind = "0.0.0.0:7008" nexus_addr = "localhost:7001"