File tree Expand file tree Collapse file tree 2 files changed +0
-63
lines changed
server/src/main/java/org/eclipse/openvsx Expand file tree Collapse file tree 2 files changed +0
-63
lines changed Original file line number Diff line number Diff line change 1313import io .micrometer .core .instrument .MeterRegistry ;
1414import org .eclipse .openvsx .mirror .ReadOnlyRequestFilter ;
1515import org .eclipse .openvsx .security .OAuth2AttributesConfig ;
16- import org .eclipse .openvsx .web .BlockHostFilter ;
1716import org .eclipse .openvsx .web .ShallowEtagHeaderFilter ;
1817import org .springframework .beans .factory .annotation .Value ;
1918import org .springframework .boot .SpringApplication ;
@@ -81,16 +80,4 @@ public FilterRegistrationBean<ReadOnlyRequestFilter> readOnlyRequestFilter(
8180
8281 return registrationBean ;
8382 }
84-
85- @ Bean
86- @ ConditionalOnProperty (value = "ovsx.blocklist" )
87- public FilterRegistrationBean <BlockHostFilter > blockHostFilter (
88- @ Value ("${ovsx.blocklist}" ) String [] blockedHosts
89- ) {
90- var registrationBean = new FilterRegistrationBean <BlockHostFilter >();
91- registrationBean .setFilter (new BlockHostFilter (blockedHosts ));
92- registrationBean .setOrder (Ordered .HIGHEST_PRECEDENCE );
93-
94- return registrationBean ;
95- }
9683}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments