mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	More check on omr-bypass
This commit is contained in:
		
							parent
							
								
									647351586f
								
							
						
					
					
						commit
						c93e90ccb1
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -10,6 +10,7 @@ EXTRA_COMMANDS="reload_rules bypass_asn" | |||
| 
 | ||||
| _add_proto() { | ||||
| 	protoname=$1 | ||||
| 	[ -z "$protoname" ] && return | ||||
| 	if [ "$(dd if=/proc/net/xt_ndpi/proto bs=4096 2> /dev/null | grep $protoname)" = "" ]; then | ||||
| 		echo "add_custom $protoname" >/proc/net/xt_ndpi/proto | ||||
| 	fi | ||||
|  | @ -44,6 +45,7 @@ _bypass_domains() { | |||
| 	config_get intf $1 interface | ||||
| 	config_get enabled $1 enabled | ||||
| 	[ "$enabled" = "0" ] && return | ||||
| 	[ -z "$domain" ] && return | ||||
| 	if [ "$(echo $domain | grep '\.$')" != "" ] || [ "$(echo $domain | grep '\.\*$')" != "" ]; then | ||||
| 		tlds=`curl --max-time 4 -s -k https://data.iana.org/TLD/tlds-alpha-by-domain.txt` | ||||
| 		domain="$(echo '"$domain"' | sed 's:*::')" | ||||
|  | @ -742,7 +744,7 @@ start_service() { | |||
| 			done | ||||
| 			if [ "$ipsets" != "" ]; then | ||||
| 				resultipset="/$(echo $dnsipset | cut -d/ -f2)/$ipsets" | ||||
| 				uci -q add_list dhcp.@dnsmasq[0].ipset=$resultipset | ||||
| 				[ -n "$resultipset" ] && uci -q add_list dhcp.@dnsmasq[0].ipset=$resultipset | ||||
| 			fi | ||||
| 		done | ||||
| 	fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue