Skip to content

Commit

Permalink
feat: add hostname variable - work on #2901
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman authored Jun 14, 2024
1 parent 07208ce commit d38b8f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions companion/lib/Internal/System.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function getNetworkInterfacesVariables() {
let allIps = ''

try {
values['hostname'] = os.hostname()
const networkInterfaces = os.networkInterfaces()
for (const iface in networkInterfaces) {
const v4Addresses = []
Expand Down Expand Up @@ -125,6 +126,10 @@ export default class System {
*/
getVariableDefinitions() {
return [
{
label: 'System: Hostname',
name: 'hostname',
},
{
label: 'System: IP of admin network interface',
name: 'bind_ip',
Expand Down

0 comments on commit d38b8f9

Please sign in to comment.