Not convinced a length check will work. What about :: or ::1, which are valid V6 addresses but short? Perhaps check
if [client_ip] =~ /:/
V6 addresses are delimited using colon, V4 addresses using a period.
Not convinced a length check will work. What about :: or ::1, which are valid V6 addresses but short? Perhaps check
if [client_ip] =~ /:/
V6 addresses are delimited using colon, V4 addresses using a period.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.