summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <[email protected]>2017-06-22 18:11:58 -0700
committerBrad Fitzpatrick <[email protected]>2017-06-22 18:11:58 -0700
commitaf97cdd9d95a6cae6a52775ab8d5b3fc456a6817 (patch)
tree5d8b47c5a2569fd149ab8968feb38a403672dc28
parent3273f401801fb301dffe0380ae573ee34a4f5c36 (diff)
Fix copy/paste-o in doc example.
-rw-r--r--tcpproxy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpproxy.go b/tcpproxy.go
index 923c1db..0abc64a 100644
--- a/tcpproxy.go
+++ b/tcpproxy.go
@@ -12,8 +12,8 @@
// p.AddHTTPHostRoute(":80", "foo.com", tcpproxy.To("10.0.0.1:8081"))
// p.AddHTTPHostRoute(":80", "bar.com", tcpproxy.To("10.0.0.2:8082"))
// p.AddRoute(":80", tcpproxy.To("10.0.0.1:8081")) // fallback
-// p.AddSNIHostRoute(":443", "foo.com", tcpproxy.To("10.0.0.1:4431"))
-// p.AddSNIHostRoute(":443", "bar.com", tcpproxy.To("10.0.0.2:4432"))
+// p.AddSNIRoute(":443", "foo.com", tcpproxy.To("10.0.0.1:4431"))
+// p.AddSNIRoute(":443", "bar.com", tcpproxy.To("10.0.0.2:4432"))
// p.AddRoute(":443", tcpproxy.To("10.0.0.1:4431")) // fallback
// log.Fatal(p.Run())
//