conf: simplify ipv4 regex
use one matching group rather than 3.
This commit is contained in:
		
							parent
							
								
									86379b4b66
								
							
						
					
					
						commit
						22f059dc5e
					
				| @ -964,7 +964,7 @@ static HANDLE_FUNC (handle_upstream) | ||||
|         ip = get_string_arg (line, &match[mi]); | ||||
|         if (!ip) | ||||
|                 return -1; | ||||
|         mi += 5; | ||||
|         mi += 3; | ||||
| 
 | ||||
|         port = (int) get_long_arg (line, &match[mi]); | ||||
|         mi += 2; | ||||
|  | ||||
| @ -16,7 +16,7 @@ | ||||
| #define ALNUM "([-A-Za-z0-9._]+)" | ||||
| #define USERNAME "([^:]*)" | ||||
| #define PASSWORD "([^@]*)" | ||||
| #define IP "((([0-9]{1,3})\\.){3}[0-9]{1,3})" | ||||
| #define IP "([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)" | ||||
| #define IPMASK "(" IP "(/" DIGIT "+)?)" | ||||
| #define IPV6 "(" \ | ||||
|         "(([0-9a-fA-F:]{2,39}))|" \ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 rofl0r
						rofl0r