diff options
| author | adnano <[email protected]> | 2020-09-27 14:18:30 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-27 14:18:30 -0400 |
| commit | 013b2a4d3e6e29812eedb620c09ee0842933494b (patch) | |
| tree | a2e57ff9ff51b94a715237fa2f18936253cd973f /gemini.go | |
| parent | Implement certificate creation (diff) | |
| download | go-gemini-013b2a4d3e6e29812eedb620c09ee0842933494b.tar.xz go-gemini-013b2a4d3e6e29812eedb620c09ee0842933494b.zip | |
Add function to write known hosts to io.Writer
Diffstat (limited to 'gemini.go')
| -rw-r--r-- | gemini.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -60,11 +60,7 @@ func init() { var setupDefaultClientOnce sync.Once func setupDefaultClient() { - knownHosts, err := LoadKnownHosts() - if err != nil { - knownHosts = &KnownHosts{} - } - DefaultClient.KnownHosts = knownHosts + DefaultClient.KnownHosts.Load() } // Send sends a Gemini request and returns a Gemini response. |