mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-05 02:34:41 +02:00
certs: support checking ipv4 or ipv6 only
Just run for IPv4 only: make NOIPV6=1 ... or for IPv6 only: make NOIPV4=1
This commit is contained in:
parent
fcb5347e33
commit
87fb70534f
1 changed files with 8 additions and 0 deletions
|
@ -42,11 +42,19 @@ DOMAINS_IPV6 = \
|
|||
all: $(DOMAINS_DUAL) $(DOMAINS_IPV4) $(DOMAINS_IPV6)
|
||||
|
||||
$(DOMAINS_DUAL):
|
||||
ifndef NOIPV4
|
||||
$(CURL) -4 --cacert $(notdir $@).pem https://$(dir $@)
|
||||
endif
|
||||
ifndef NOIPV6
|
||||
$(CURL) -6 --cacert $(notdir $@).pem https://$(dir $@)
|
||||
endif
|
||||
|
||||
$(DOMAINS_IPV4):
|
||||
ifndef NOIPV4
|
||||
$(CURL) -4 --cacert $(notdir $@).pem https://$(dir $@)
|
||||
endif
|
||||
|
||||
$(DOMAINS_IPV6):
|
||||
ifndef NOIPV6
|
||||
$(CURL) -6 --cacert $(notdir $@).pem https://$(dir $@)
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue