Change localhost to 127.0.0.1
This commit is contained in:
+1
-1
@@ -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:`
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user