We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 934b502 commit db13181Copy full SHA for db13181
info.go
@@ -8,10 +8,10 @@ import (
8
func infoHandler(c *gin.Context) {
9
c.JSON(200, gin.H{
10
"version": version,
11
- "http": "http://localhost" + port,
12
- "https": "https://localhost" + portSSL,
13
- "ws": "ws://localhost" + port,
14
- "wss": "wss://localhost" + portSSL,
+ "http": "http://" + c.Request.Host + ":" + port,
+ "https": "https://" + c.Request.Host + ":" + portSSL,
+ "ws": "ws://" + c.Request.Host + ":" + port,
+ "wss": "wss://" + c.Request.Host + ":" + portSSL,
15
})
16
}
17
0 commit comments