aboutsummaryrefslogtreecommitdiffstats
path: root/modules/util/net.go
blob: 0339325dc3c23c4c8394f38ed42147ab6c6c3ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package util

import (
	"net"
)

func IsIPPrivate(ip net.IP) bool {
	return ip.IsPrivate()
}