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[:])
|
||||
|
||||
url = strings.Replace(
|
||||
url, "{output}", "rtsp://localhost:"+rtsp.Port+path, 1,
|
||||
url, "{output}", "rtsp://127.0.0.1:"+rtsp.Port+path, 1,
|
||||
)
|
||||
|
||||
// remove `exec:`
|
||||
|
||||
@@ -157,7 +157,7 @@ func parseArgs(s string) *Args {
|
||||
args.input = "-i " + s
|
||||
}
|
||||
} else if streams.Get(s) != nil {
|
||||
s = "rtsp://localhost:" + rtsp.Port + "/" + s
|
||||
s = "rtsp://127.0.0.1:" + rtsp.Port + "/" + s
|
||||
switch {
|
||||
case args.video > 0 && args.audio == 0:
|
||||
s += "?video"
|
||||
|
||||
Reference in New Issue
Block a user