Change localhost to 127.0.0.1

This commit is contained in:
Alexey Khit
2023-04-25 06:21:50 +03:00
parent a20de73ab2
commit 6247746177
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func Handle(url string) (core.Producer, error) {
path := "/" + hex.EncodeToString(sum[:]) path := "/" + hex.EncodeToString(sum[:])
url = strings.Replace( url = strings.Replace(
url, "{output}", "rtsp://localhost:"+rtsp.Port+path, 1, url, "{output}", "rtsp://127.0.0.1:"+rtsp.Port+path, 1,
) )
// remove `exec:` // remove `exec:`
+1 -1
View File
@@ -157,7 +157,7 @@ func parseArgs(s string) *Args {
args.input = "-i " + s args.input = "-i " + s
} }
} else if streams.Get(s) != nil { } else if streams.Get(s) != nil {
s = "rtsp://localhost:" + rtsp.Port + "/" + s s = "rtsp://127.0.0.1:" + rtsp.Port + "/" + s
switch { switch {
case args.video > 0 && args.audio == 0: case args.video > 0 && args.audio == 0:
s += "?video" s += "?video"