aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.