Page tree
Skip to end of metadata
Go to start of metadata

By default, the module displays the IP address of FreeNAS / TrueNAS in the client area. You can customize the behavior via the customconfig.php file and display the WHMCS server hostname instead. To enable this feature, do the following:

  • Navigate into the directory /modules/servers/freenas/
  • Open the file customconfig.php, or create the file if it does not exist
  • Insert following line and save the file:

if (!function_exists('freenas_showHostname')) {
    function freenas_showHostname ($params) {
        return 1;
    }
}

If you have newly created the file, insert "<?php" at the to of the file.

Please note that you must enter a hostname for the server in the WHMCS admin backend, otherwise the IP address will still be displayed.

Before:

After:

  • No labels