From 6551e03eee8fce099f46c778014900ff09e59060 Mon Sep 17 00:00:00 2001 From: clawbot Date: Wed, 25 Mar 2026 13:18:55 -0700 Subject: [PATCH] fix: default IRC_LISTEN_ADDR to :6667 --- README.md | 2 +- internal/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1483a32..8a3e88a 100644 --- a/README.md +++ b/README.md @@ -2228,7 +2228,7 @@ directory is also loaded automatically via | `NEOIRC_OPER_PASSWORD` | string | `""` | Server operator (o-line) password. Both name and password must be set to enable OPER. | | `LOGIN_RATE_LIMIT` | float | `1` | Allowed login attempts per second per IP address. | | `LOGIN_RATE_BURST` | int | `5` | Maximum burst of login attempts per IP before rate limiting kicks in. | -| `IRC_LISTEN_ADDR` | string | `""` | TCP address for the traditional IRC protocol listener (e.g. `:6667`). Disabled if empty. | +| `IRC_LISTEN_ADDR` | string | `":6667"` | TCP address for the traditional IRC protocol listener. Set empty to disable. | | `MAINTENANCE_MODE` | bool | `false` | Maintenance mode flag (reserved) | ### Example `.env` file diff --git a/internal/config/config.go b/internal/config/config.go index c2f9be7..c3377d7 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -87,7 +87,7 @@ func New( viper.SetDefault("NEOIRC_OPER_PASSWORD", "") viper.SetDefault("LOGIN_RATE_LIMIT", "1") viper.SetDefault("LOGIN_RATE_BURST", "5") - viper.SetDefault("IRC_LISTEN_ADDR", "") + viper.SetDefault("IRC_LISTEN_ADDR", ":6667") err := viper.ReadInConfig() if err != nil {