From 725bf99a62f731472cb880ecf1675994e1c632aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Thu, 7 Apr 2011 09:39:09 +0000 Subject: [PATCH] Make the same change also in bind --- org.glite.lb.server/src/notification.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.glite.lb.server/src/notification.c b/org.glite.lb.server/src/notification.c index 4409cac..0fe1d95 100644 --- a/org.glite.lb.server/src/notification.c +++ b/org.glite.lb.server/src/notification.c @@ -297,6 +297,13 @@ int edg_wll_NotifBindServer( edg_wll_SetError(ctx, EINVAL, "Addres override not in format host:port"); goto rollback; } + if ( strstr(address_override, "x-msg")) { + // XXX: Quick ugly hack. This will be made configurable soon + if ( !strstr(address_override,"x-msg://grid.emi.")) { + edg_wll_SetError(ctx, EINVAL, "This site requires that all topic names start with prefix 'grid.emi.'"); + goto rollback; + } + } if ( !strncmp(address_override, "0.0.0.0", aux-address_override) || !strncmp(address_override, "[::]", aux-address_override) || !strncmp(address_override, "::", aux-address_override) ) -- 1.8.2.3