Skip to content

Commit

Permalink
Change localhost to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 25, 2023
1 parent a20de73 commit 6247746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:`
Expand Down
2 changes: 1 addition & 1 deletion cmd/ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6247746

Please sign in to comment.