Skip to content

Commit 138e2e4

Browse files
committed
chore: update hostname
1 parent 73cc7fc commit 138e2e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sysinfo/lib/SystemInfo.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getIP, getNetworkAddr } from '../deps.ts'
22

33
export namespace SysInfo {
44
export function hostname(fullhost: boolean = false): string {
5-
const hostname = Deno.env.get('HOST') || Deno.hostname() || 'localhost'
5+
const hostname = Deno.env.get('HOST') || Deno.env.get('HOSTNAME') || Deno.hostname() || 'localhost'
66

77
if (fullhost) {
88
return hostname

0 commit comments

Comments
 (0)