@pradeeban this can be done with:

   return port || chunk.proxy_port