golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
330 B
15 lines
330 B
package core |
|
|
|
import ( |
|
"github.com/gin-gonic/gin" |
|
|
|
"github.com/bluenviron/mediamtx/internal/conf" |
|
) |
|
|
|
func httpSetTrustedProxies(router *gin.Engine, trustedProxies conf.IPsOrCIDRs) { |
|
tmp := make([]string, len(trustedProxies)) |
|
for i, entry := range trustedProxies { |
|
tmp[i] = entry.String() |
|
} |
|
router.SetTrustedProxies(tmp) |
|
}
|
|
|