[GH-ISSUE #1131] 部署宝塔提示未知IP #764

Closed
opened 2026-03-03 01:05:49 +03:00 by kerem · 4 comments
Owner

Originally created by @fcwys on GitHub (Dec 29, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1131

Release Version / 软件版本

v0.4.12

Description / 问题描述

部署宝塔提示未知IP,实际是在本机调用本机宝塔,API接口允许了127.0.0.1和本机公网IP也不行,之前是可以的:

[2025-12-29 10:30:31]
ready to deploy certificate ...
[2025-12-29 10:30:31]
sdk request 'bt.SSLCertSaveCert'
[2025-12-29 10:30:31]
could not deploy certificate
[2025-12-29 10:30:31]
failed to execute sdk request 'bt.SSLCertSaveCert': sdkerr: api error: message='IP校验失败,您的访问IP为[未知IP地址]'

Miscellaneous / 其他

No response

Originally created by @fcwys on GitHub (Dec 29, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1131 ### Release Version / 软件版本 v0.4.12 ### Description / 问题描述 部署宝塔提示未知IP,实际是在本机调用本机宝塔,API接口允许了127.0.0.1和本机公网IP也不行,之前是可以的: ```bash [2025-12-29 10:30:31] ready to deploy certificate ... [2025-12-29 10:30:31] sdk request 'bt.SSLCertSaveCert' [2025-12-29 10:30:31] could not deploy certificate [2025-12-29 10:30:31] failed to execute sdk request 'bt.SSLCertSaveCert': sdkerr: api error: message='IP校验失败,您的访问IP为[未知IP地址]' ``` ### Miscellaneous / 其他 _No response_
kerem closed this issue 2026-03-03 01:05:49 +03:00
Author
Owner

@fudiwei commented on GitHub (Dec 30, 2025):

这个你应该问宝塔吧 😂 Certimate 就是调用个 HTTP 请求,又不能篡改 IP。

<!-- gh-comment-id:3698398039 --> @fudiwei commented on GitHub (Dec 30, 2025): 这个你应该问宝塔吧 😂 Certimate 就是调用个 HTTP 请求,又不能篡改 IP。
Author
Owner

@fcwys commented on GitHub (Dec 30, 2025):

我知道是宝塔的问题,只是来这看看有没有人遇到过或者有啥解决办法参考下😂

<!-- gh-comment-id:3698410879 --> @fcwys commented on GitHub (Dec 30, 2025): 我知道是宝塔的问题,只是来这看看有没有人遇到过或者有啥解决办法参考下😂
Author
Owner

@fudiwei commented on GitHub (Dec 30, 2025):

仔细回忆一下最近对宝塔干过啥?升级版本了?开了防火墙?WAF 规则改了?前面配了反向代理但忘记转发 X-Forwarded-For 头了?

<!-- gh-comment-id:3698417565 --> @fudiwei commented on GitHub (Dec 30, 2025): 仔细回忆一下最近对宝塔干过啥?升级版本了?开了防火墙?WAF 规则改了?前面配了反向代理但忘记转发 `X-Forwarded-For` 头了?
Author
Owner

@fcwys commented on GitHub (Dec 30, 2025):

除了上个月升级过宝塔其他啥都没弄,确定是宝塔的问题的,因为是本机运行,宝塔居然获取不到客户端请求IP也是比较离谱

<!-- gh-comment-id:3698424675 --> @fcwys commented on GitHub (Dec 30, 2025): 除了上个月升级过宝塔其他啥都没弄,确定是宝塔的问题的,因为是本机运行,宝塔居然获取不到客户端请求IP也是比较离谱
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#764
No description provided.