osInfo() fixed issue fqdn (openBSD)
This commit is contained in:
parent
7be59121f7
commit
ee24a2420c
@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.11.1 | 2022-02-03 | `osInfo()` fixed issue fqdn (openBSD) |
|
||||
| 5.11.0 | 2022-01-26 | `networkInterfaces()` added default property and parameter |
|
||||
| 5.10.7 | 2022-01-21 | `processes()` reverted PR #560 (windows) |
|
||||
| 5.10.6 | 2022-01-21 | `usb()` fix `users()` fix tty (windows) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.11.1</th>
|
||||
<td>2022-02-03</td>
|
||||
<td><span class="code">osInfo()</span> fixed issue fqdn (openBSD)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.11.0</th>
|
||||
<td>2022-01-26</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.11.0</span></div>
|
||||
<div class="version">New Version: <span id="version">5.11.1</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -167,7 +167,7 @@ function getLogoFile(distro) {
|
||||
|
||||
function getFQDN() {
|
||||
let fqdn = os.hostname;
|
||||
if (_linux || _darwin || _freebsd || _openbsd || _netbsd) {
|
||||
if (_linux || _darwin) {
|
||||
try {
|
||||
const stdout = execSync('hostname -f');
|
||||
fqdn = stdout.toString().split(os.EOL)[0];
|
||||
@ -175,6 +175,14 @@ function getFQDN() {
|
||||
util.noop();
|
||||
}
|
||||
}
|
||||
if (_freebsd || _openbsd || _netbsd) {
|
||||
try {
|
||||
const stdout = execSync('hostname');
|
||||
fqdn = stdout.toString().split(os.EOL)[0];
|
||||
} catch (e) {
|
||||
util.noop();
|
||||
}
|
||||
}
|
||||
if (_windows) {
|
||||
try {
|
||||
const stdout = execSync('echo %COMPUTERNAME%.%USERDNSDOMAIN%', util.execOptsWin);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user