"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.7.2/src/tests/test03-multiple-listen.sh" (29 Nov 2021, 416 Bytes) of package /linux/www/hitch-1.7.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test03-multiple-listen.sh": 1.7.0_vs_1.7.2.

    1 #!/bin/sh
    2 #
    3 # Test multiple listening sockets.
    4 #
    5 . hitch_test.sh
    6 
    7 PORT2=$(expr $$ % 60000 + 3000)
    8 
    9 start_hitch \
   10     --backend=[hitch-tls.org]:80 \
   11     --frontend="[localhost]:$LISTENPORT" \
   12     --frontend="[localhost]:$PORT2" \
   13     "${CERTSDIR}/site1.example.com"
   14 
   15 for host in $(hitch_hosts)
   16 do
   17     s_client -connect "$host" >"$host.dump"
   18     subject_field_eq CN "site1.example.com" "$host.dump"
   19     curl_hitch -- "https://$host/"
   20 done