扩展获取IP的API的访问重点

/ip/ip
/ip/
/ip
都可以了
This commit is contained in:
TheWhiteDog9487
2025-12-12 10:51:35 +08:00
parent f167d2cbd9
commit 0185c2e0d1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ plugins {
}
group = "xyz.thewhitedog9487"
version = "0.7.4"
version = "0.7.5"
java {
toolchain {
@@ -23,7 +23,7 @@ class OpenAPIConfiguration {
.contact(new Contact()
.name("TheWhiteDog9487")
.url("https://www.github.com/TheWhiteDog9487/WebAPI"))
.version("0.7.4")
.version("0.7.5")
.license(new License()
.name("WTFPL")
.url("https://spdx.org/licenses/WTFPL")) )
@@ -38,7 +38,7 @@ class IP {
schema = @Schema(implementation = String.class),
examples = @ExampleObject(value = "78.141.226.247")),
description = "成功获取到IP地址,内容为纯文本格式的IP地址")
@GetMapping("/ip")
@GetMapping({"/ip", "", "/"})
ResponseEntity<String> GetIP(@RequestHeader("CF-COnnecting-IP") String Header_CFConnectingIP,
@RequestHeader("X-Forwarded-For") String Header_XForwardedFor,
HttpServletRequest Request) {