aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-06 19:48:56 +0700
committerShulhan <ms@kilabit.info>2026-02-06 19:48:56 +0700
commit7a38b33247a339e4be80d2bfa040c5ba9e0c051b (patch)
treef24b3ad9c8cf0fe59e773a9c5a502894d051e6be /client.go
parent16b034999523d5956b60176e1ca298e0585e7008 (diff)
downloadkbbi-7a38b33247a339e4be80d2bfa040c5ba9e0c051b.tar.xz
all: change the host address and revert minimum TLS
The host kbbi.kemdikbud.go.id has been deactivated and changes to kbbi.kemendikdasmen.go.id. The minimum TLS 1.3 that we set in 0933476ff610 reverted because seems like the website is not under cloudflare but under toffsmcdn.net.
Diffstat (limited to 'client.go')
-rw-r--r--client.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/client.go b/client.go
index 6c46835..0d93e57 100644
--- a/client.go
+++ b/client.go
@@ -5,7 +5,6 @@ package kbbi
import (
"bytes"
- "crypto/tls"
"encoding/gob"
"errors"
"fmt"
@@ -26,7 +25,7 @@ import (
)
const (
- kbbiHost = `kbbi.kemdikbud.go.id`
+ kbbiHost = `kbbi.kemendikdasmen.go.id`
kbbiUrlBase = `https://` + kbbiHost
kbbiUrlLogin = `/Account/Login`
kbbiPathEntri = "/entri/"
@@ -104,10 +103,6 @@ func NewClient(opts ClientOptions) (cl *Client, err error) {
return nil, fmt.Errorf("New: %w", err)
}
- // This fix connection being blocked by CloudFlare.
- var transport *http.Transport = cl.httpc.Transport()
- transport.TLSClientConfig.MinVersion = tls.VersionTLS13
-
err = cl.loadCookies()
if err != nil {
return nil, fmt.Errorf("New: %w", err)