File tree Expand file tree Collapse file tree
golem-registry-service/src/services/domain_registration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl Default for AvailableDomainsConfig {
7777pub struct RestrictedAvailableDomainsConfig {
7878 pub golem_apps_domain : String ,
7979 pub golem_mcps_domain : String ,
80- pub allow_arbitary_subdomains : bool ,
80+ pub allow_arbitrary_subdomains : bool ,
8181}
8282
8383impl SafeDisplay for RestrictedAvailableDomainsConfig {
@@ -88,7 +88,7 @@ impl SafeDisplay for RestrictedAvailableDomainsConfig {
8888 let _ = writeln ! (
8989 & mut result,
9090 "allow arbitrary subdomains: {}" ,
91- self . allow_arbitary_subdomains
91+ self . allow_arbitrary_subdomains
9292 ) ;
9393 result
9494 }
@@ -99,7 +99,7 @@ impl Default for RestrictedAvailableDomainsConfig {
9999 Self {
100100 golem_apps_domain : "apps.golem.cloud" . to_string ( ) ,
101101 golem_mcps_domain : "mcps.golem.cloud" . to_string ( ) ,
102- allow_arbitary_subdomains : false ,
102+ allow_arbitrary_subdomains : false ,
103103 }
104104 }
105105}
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ impl DomainMatcher {
293293 AvailableDomainsConfig :: Restricted ( restricted) => {
294294 let make_regex = |base| {
295295 let escaped = regex:: escape ( base) ;
296- let pattern = if restricted. allow_arbitary_subdomains {
296+ let pattern = if restricted. allow_arbitrary_subdomains {
297297 format ! ( "^([^\\ .]+\\ .)+{escaped}$" )
298298 } else {
299299 format ! ( "^[^\\ .]+\\ .{escaped}$" )
@@ -365,7 +365,7 @@ mod tests {
365365 RestrictedAvailableDomainsConfig {
366366 golem_apps_domain : apps_base. to_string ( ) ,
367367 golem_mcps_domain : mcps_base. to_string ( ) ,
368- allow_arbitary_subdomains : allow_arbitrary,
368+ allow_arbitrary_subdomains : allow_arbitrary,
369369 } ,
370370 ) )
371371 . unwrap ( )
You can’t perform that action at this time.
0 commit comments