Make the same change also in bind
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 7 Apr 2011 09:39:09 +0000 (09:39 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 7 Apr 2011 09:39:09 +0000 (09:39 +0000)
org.glite.lb.server/src/notification.c

index 4409cac..0fe1d95 100644 (file)
@@ -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) )