%set %%domains = [d.lstrip('.') for d in %%set(%%proxy_noauth_auto) | %%set(%%proxy_noauth)]
%%domains.append('ac-dijon.fr')
%silent %%domains.sort()
%for %%domain in %%domains
%set %%is_subdomain = False
 %for %%other_domain in %%domains
   %if %%domain.endswith('.' + %%other_domain)
     %set %%is_subdomain = True
     %break
   %end if
 %end for
%if %%is_subdomain
#%%domain is already included in %%other_domain
%else
%%domain
%end if
%end for
