Hello @changgq, the code is doing the right thing, when you are using UDP, UDP4 or UDP6 it checks that
no proxy or TLS is defined on the config object.
If any of these settings are defined we fallthrough to the default case and return an error.
To fix your code I would check that the Config send to the NewClient method return nil on the Proxy and TLS fields.
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.