aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--client.go7
-rw-r--r--cmd/kbbi/main.go2
-rw-r--r--kbbi.go2
3 files changed, 3 insertions, 8 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)
diff --git a/cmd/kbbi/main.go b/cmd/kbbi/main.go
index d833d6e..47e5e56 100644
--- a/cmd/kbbi/main.go
+++ b/cmd/kbbi/main.go
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Program kbbi is the command-line interface to Kamus Besar Bahasa
-// Indonesia (KBBI) at https://kbbi.kemdikbud.go.id/.
+// Indonesia (KBBI) at https://kbbi.kemendikdasmen.go.id/.
package main
import (
diff --git a/kbbi.go b/kbbi.go
index 127e701..3b5d491 100644
--- a/kbbi.go
+++ b/kbbi.go
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Package kbbi is the Go library to access the Bahasa Indonesia dictionary
-// from https://kbbi.kemdikbud.go.id.
+// from KBBI.
package kbbi
// Version of this module.