diff --git a/README.md b/README.md index eb3314d..083e13c 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ AUR has a package for Arch Linux: https://aur.archlinux.org/packages/ustreamer ----- # Usage -Without arguments, ```ustreamer``` will try to open ```/dev/video0``` with 640x480 resolution and start broadcasting on ```http://localhost:8080```. You can override this behavior using parameters ```--device```, ```--host``` and ```--port```. For example, to broadcast to the world, run: +Without arguments, ```ustreamer``` will try to open ```/dev/video0``` with 640x480 resolution and start broadcasting on ```http://127.0.0.1:8080```. You can override this behavior using parameters ```--device```, ```--host``` and ```--port```. For example, to broadcast to the world, run: ``` # ./ustreamer --device=/dev/video1 --host=0.0.0.0 --port=80 ``` diff --git a/README.ru.md b/README.ru.md index 20054c5..84e1010 100644 --- a/README.ru.md +++ b/README.ru.md @@ -48,7 +48,7 @@ $ ./ustreamer --help ----- # Использование -Будучи запущенным без аргументов, ```ustreamer``` попробует открыть устройство ```/dev/video0``` с разрешением 640x480 и начать трансляцию на ```http://localhost:8080```. Это поведение может быть изменено с помощью опций ```--device```, ```--host``` и ```--port```. Пример вещания на всю сеть по 80-м порту: +Будучи запущенным без аргументов, ```ustreamer``` попробует открыть устройство ```/dev/video0``` с разрешением 640x480 и начать трансляцию на ```http://127.0.0.1:8080```. Это поведение может быть изменено с помощью опций ```--device```, ```--host``` и ```--port```. Пример вещания на всю сеть по 80-м порту: ``` # ./ustreamer --device=/dev/video1 --host=0.0.0.0 --port=80 ``` diff --git a/src/http.c b/src/http.c index 0e24797..e3bab5a 100644 --- a/src/http.c +++ b/src/http.c @@ -73,7 +73,7 @@ struct http_server_t *http_server_init(struct stream_t *stream) { run->drop_same_frames_blank = 10; A_CALLOC(server, 1); - server->host = "localhost"; + server->host = "127.0.0.1"; server->port = 8080; server->timeout = 10; server->run = run;