const os = require('os');

const myIpAddresses = Object.values(os.networkInterfaces())
    .map(x => x.find(({ family, internal }) => family === 'IPv4' && !internal))
    .filter(x => x)
    .map(x => x.address);

const banner = ({ port, ssl, sslPort, sslDomain }) => `
 _ __ _ __  _ __   _____      __
| '__| '_ \\| '_ \\ / _ \\ \\ /\\ / /
| |  | |_) | | | | (_) \\ V  V /
|_|  | .__/|_| |_|\\___/ \\_/\\_/
     |_|         pre-alpha test

Your RPNow server is ready!

${(sslDomain) ? (
`To access this RPNow server, try visiting the following in your
web browser:

* ${ssl ? 'https://' : 'http://'}${sslDomain}`
):(
`${(process.platform === 'win32') ? (
`To access RPNow on the local network, (i.e., when connected to the
same wi-fi as this computer) try visiting one of the following in your
web browser:`
):(
`To access this RPNow server, try visiting one of the following in your
web browser:`
)}

${(myIpAddresses.length > 0) ? (
myIpAddresses.map(ip => {
    if (ssl) return sslPort === 443 ? `* https://${ip}` : `* https://${ip}:${sslPort}`;
    else return port === 80 ? `* http://${ip}` : `* http://${ip}:${port}`
}).join('\n')
):(
`  (Unable to determine my address.)`
)}`)}

Have fun!
`;

module.exports = banner;

@@ -254,16 +254,25 @@
 slDomain
+, dataDir
  %7D) =%3E %60
@@ -447,37 +447,8 @@
 st%0A%0A
-Your RPNow server is ready!%0A%0A
 $%7B(s
@@ -1160,16 +1160,54 @@
 %0A)%7D%60)%7D%0A%0A
+RP data will be stored in $%7BdataDir%7D%0A%0A
 Have fun

Add info line about dataDir to the CLI