@zturnlibs/ztron-api


network

Variables

network

const network: object

Defined in: network.ts:22

Type Declaration

getLocalIpv4

getLocalIpv4: () => Promise<string | null>

主接口的 IPv4(未知/离线时为 null)。

Returns

Promise<string | null>

getLocalIpv6

getLocalIpv6: () => Promise<string | null>

主接口的 IPv6(未知时为 null)。

Returns

Promise<string | null>

getPublicIp

getPublicIp: () => Promise<string | null>

公网 IPv4(离线/服务不可达时为 null)。

Returns

Promise<string | null>

Functions

getLocalIpv4()

getLocalIpv4(): Promise<string | null>

Defined in: network.ts:8

主接口的 IPv4(未知/离线时为 null)。

Returns

Promise<string | null>


getLocalIpv6()

getLocalIpv6(): Promise<string | null>

Defined in: network.ts:13

主接口的 IPv6(未知时为 null)。

Returns

Promise<string | null>


getPublicIp()

getPublicIp(): Promise<string | null>

Defined in: network.ts:18

公网 IPv4(离线/服务不可达时为 null)。

Returns

Promise<string | null>