Nmap Development mailing list archives

[NSE][RFC] Port return type from url.parse()


From: nnposter <nnposter () users sourceforge net>
Date: Thu, 6 Apr 2017 08:59:17 -0600

Function url.parse() separates a given URL into individual components,
such as the scheme, host, port, and path.

As of now the port part is being returned as a string. I would like to
propose that port return type is changed to a number, technically an
integer.

Details at https://github.com/nmap/nmap/issues/833

I am soliciting feedback on any downsides of this change.


Cheers,
nnposter
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: