aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-09 09:48:47 -0500
committerAdnan Maolood <[email protected]>2021-02-09 09:48:51 -0500
commit0e3b61ed0022d5b829cf85c45151faf8657a0184 (patch)
treea3081c6f46088d0aff63f1dd711ffcc7f862c4fa /examples
parentMake ResponseWriter an interface (diff)
downloadgo-gemini-0e3b61ed0022d5b829cf85c45151faf8657a0184.tar.xz
go-gemini-0e3b61ed0022d5b829cf85c45151faf8657a0184.zip
examples/client: Fix opening of known hosts file
Diffstat (limited to 'examples')
-rw-r--r--examples/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go
index d9e2d14..7a6b6d0 100644
--- a/examples/client.go
+++ b/examples/client.go
@@ -36,7 +36,7 @@ func init() {
log.Fatal(err)
}
- hostsfile, err = tofu.NewHostsFile(path)
+ hostsfile, err = tofu.OpenHostsFile(path)
if err != nil {
log.Fatal(err)
}