In Bremen it has been noted that a prefix may lead people to believe it has to stay there and thus naming their nodes "ffhb-*", which is not what the community wants (see FreifunkBremen/gluon-site-ffhb#1). However, an empty prefix lead to the connecting hyphen still being inserted. This commit thus makes the hyphen part of the configured prefix and allows the prefix to be missing from the `site.conf`.
		
			
				
	
	
		
			11 lines
		
	
	
		
			251 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			251 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| need_string 'site_code'
 | |
| need_string 'site_name'
 | |
| 
 | |
| need_string('hostname_prefix', false)
 | |
| need_string 'timezone'
 | |
| 
 | |
| need_string_array('ntp_servers', false)
 | |
| 
 | |
| need_string_match('prefix4', '^%d+.%d+.%d+.%d+/%d+$')
 | |
| need_string_match('prefix6', '^[%x:]+/%d+$')
 |