mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-21 15:59:22 +08:00
Chore: minor rename
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
const defaultInterval = 1000
|
||||
|
||||
func init() {
|
||||
addMountPoint("/connections", connectionRouter())
|
||||
registerMountPoint("/connections", connectionRouter())
|
||||
}
|
||||
|
||||
func connectionRouter() http.Handler {
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
addMountPoint("/debug/pprof/", pprofRouter())
|
||||
registerMountPoint("/debug/pprof/", pprofRouter())
|
||||
}
|
||||
|
||||
func pprofRouter() http.Handler {
|
||||
|
@@ -28,7 +28,7 @@ var (
|
||||
_mountPoints = make(map[string]http.Handler)
|
||||
)
|
||||
|
||||
func addMountPoint(pattern string, handler http.Handler) {
|
||||
func registerMountPoint(pattern string, handler http.Handler) {
|
||||
_mountPoints[pattern] = handler
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user