mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:27:39 +00:00
refactor(infra): share isTailnetIPv4 helper
This commit is contained in:
@@ -5,7 +5,7 @@ export type TailnetAddresses = {
|
||||
ipv6: string[];
|
||||
};
|
||||
|
||||
function isTailnetIPv4(address: string): boolean {
|
||||
export function isTailnetIPv4(address: string): boolean {
|
||||
const parts = address.split(".");
|
||||
if (parts.length !== 4) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user