In AnyEvent::DNS code there is this line that sets the port for the DNS server (and there seems to be no way to specify another port):
sub DOMAIN_PORT() { 53 } # if this changes drop me a note
I want to use another port. I thought I could simply re-define it like so:
*AnyEvent::DNS::DOMAIN_PORT = sub () { 8053 }; print AnyEvent::DNS::DOMAIN_PORT(); # Prints 53..
However it doesn't work. What am I doing wrong?
In reply to How to redefine a modules private function? by sectokia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |