Skip to content

Commit 32d7c70

Browse files
author
gdt
committed
chat/ejabberd: Make epmd listen only on localhost
The default is *, so set it to 127.0.0.1, aligned with security for single-host setups. Theoretical users with multiple hosts are weclome to send patches to make this configurable, or, better yet, fix upstream via a config file.
1 parent 80e7529 commit 32d7c70

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

chat/ejabberd/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# $NetBSD: Makefile,v 1.108 2025/08/17 11:52:52 gdt Exp $
1+
# $NetBSD: Makefile,v 1.109 2026/02/04 16:19:13 gdt Exp $
22

33
DISTNAME= ejabberd-25.07
4+
PKGREVISION= 1
45
CATEGORIES= chat
56
MASTER_SITES= ${MASTER_SITE_GITHUB:=processone/}
67

chat/ejabberd/files/ejabberd.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!@RCD_SCRIPTS_SHELL@
22
#
3-
# $NetBSD: ejabberd.sh,v 1.4 2014/07/31 10:31:51 fhajny Exp $
3+
# $NetBSD: ejabberd.sh,v 1.5 2026/02/04 16:19:13 gdt Exp $
44
# $FreeBSD: ejabberd.sh.in,v 1.1 2005/08/28 15:51:48 vsevolod Exp $
55
#
66
# PROVIDE: ejabberd
@@ -34,6 +34,9 @@ ejabberd_status()
3434

3535
ejabberd_start()
3636
{
37+
# epmd is an erlang nameserver. Listen only on localhost, aligned
38+
# with what 99.9% want.
39+
export ERL_EPMD_ADDRESS=127.0.0.1
3740
echo -n "Starting $name: "
3841
if ejabberd_status; then
3942
echo " already running."

0 commit comments

Comments
 (0)