Forum Discussion
Mike_Rodrigues
12 hours agoProduct Manager
If you only need to check one port per device, you could swap out the hardcoding with a reference to a property, and then set that property accordingly. You could even get a bit fancy and have it default to 443 if the property you're asking for does not exist.
// This is directly from a Jabber DS I wrote years ago. If my.port does not exist, it defaults to 443.
port = hostProps.get("my.port") ?: "443"
// the other one is messier, I would do this:
my_port = hostProps.get("my.port") ?: "443"
if(port == my_port) {
Related Content
- 2 years ago
- 2 years agoAnonymous
- 12 months ago