From: Zdeněk Šustr Date: Thu, 7 Apr 2011 09:39:09 +0000 (+0000) Subject: Make the same change also in bind X-Git-Tag: glite-lb-server_R_2_2_5_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=725bf99a62f731472cb880ecf1675994e1c632aa;p=jra1mw.git Make the same change also in bind --- 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) )