iputils

package
v0.0.0-...-ae88a46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package iputils

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIP

func ClientIP(req *fasthttp.Request) string

func Ip2Binary

func Ip2Binary(ip string) string

Ip2Binary 将IP地址转化为二进制String

func Match

func Match(ip, ipRange string) bool

Match 测试IP地址和地址端是否匹配 变量ip为字符串,例子"192.168.56.4" iprange为地址端"192.168.56.64/26"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL