summaryrefslogtreecommitdiffhomepage
path: root/example.conf.hcl
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-15 13:40:02 +0900
committernsfisis <nsfisis@gmail.com>2026-02-15 13:50:02 +0900
commit52d5b26798061848cedb13595723c6b6c9da7bbd (patch)
treec665858b89f8bcb4912e3ca36c1a88f650c33292 /example.conf.hcl
parent0ee13791fbf81f588f840578e5c3854a7eb06133 (diff)
downloadmioproxy-0.5.0.tar.gz
mioproxy-0.5.0.tar.zst
mioproxy-0.5.0.zip
feat: support listening on multiple hostsHEADv0.5.0main
Diffstat (limited to 'example.conf.hcl')
-rw-r--r--example.conf.hcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/example.conf.hcl b/example.conf.hcl
index 9274fa4..88f65a4 100644
--- a/example.conf.hcl
+++ b/example.conf.hcl
@@ -1,5 +1,7 @@
server http {
- host = "127.0.0.1"
+ hosts = ["127.0.0.1"]
+ # hosts = ["::1"] # Listen on localhost (IPv6)
+ # hosts = ["0.0.0.0", "::"] # Listen on all interfaces (IPv4 + IPv6)
port = 8000
proxy a {