File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function run_multi() {
25
25
}
26
26
27
27
function run_ayucamstream() {
28
- local cam_sec ust_bin dev pt res rtsp rtsp_pt fps cstm start_param
28
+ local cam_sec ust_bin dev pt res rtsp rtsp_pt fps cstm noprx start_param
29
29
local v4l2ctl
30
30
cam_sec=" ${1} "
31
31
ust_bin=" ${BASE_CN_PATH} /bin/camera-streamer/camera-streamer"
@@ -36,11 +36,21 @@ function run_ayucamstream() {
36
36
rtsp=$( get_param " cam ${cam_sec} " enable_rtsp)
37
37
rtsp_pt=$( get_param " cam ${cam_sec} " rtsp_port)
38
38
cstm=" $( get_param " cam ${cam_sec} " custom_flags 2> /dev/null) "
39
+ noprx=" $( get_param " crowsnest" no_proxy 2> /dev/null) "
39
40
# # construct start parameter
40
41
# set http port
41
42
#
42
43
start_param=( --http-port=" ${pt} " )
43
44
45
+ if [[ -n " ${noprx} " ]] && [[ " ${noprx} " = " true" ]]; then
46
+ # See https://github.com/mainsail-crew/crowsnest/pull/221#issuecomment-1863555700 for why
47
+ # we cannot assume the binary has support for `--http-listen`.
48
+ if ${ust_bin} --help | grep -q " http-listen" ; then
49
+ start_param+=( --http-listen=0.0.0.0 )
50
+ log_msg " INFO: Set to 'no_proxy' mode! Using 0.0.0.0!"
51
+ fi
52
+ fi
53
+
44
54
# Set device
45
55
start_param+=( --camera-path=" ${dev} " )
46
56
You can’t perform that action at this time.
0 commit comments