mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-10-14 10:19:09 +00:00
Add a flag to disable TCP scanning (#45)
* Add a flag to disable TCP scanning * Move the option definition
This commit is contained in:
@@ -24,7 +24,9 @@ func SetupTemplate(r *gin.Engine) {
|
||||
func Setup(r *gin.Engine, geo *service.Geo) {
|
||||
geoSvc = geo
|
||||
r.GET("/", getRoot)
|
||||
r.GET("/scan/tcp/:port", scanTCPPort)
|
||||
if !setting.App.DisableTCPScan {
|
||||
r.GET("/scan/tcp/:port", scanTCPPort)
|
||||
}
|
||||
r.GET("/client-port", getClientPortAsString)
|
||||
r.GET("/geo", getGeoAsString)
|
||||
r.GET("/geo/:field", getGeoAsString)
|
||||
|
Reference in New Issue
Block a user