<commit_before>#!/bin/bash

# Author : Oxyno-zeta <<EMAIL>>

ARGS=""

if [ -n "$SSLH_USER" ] ; then
  ARGS=$ARGS" --user "$SSLH_USER
else
  ARGS=$ARGS" --user root"
fi

if [ -n "$SSLH_LISTEN_ADDRESS" ] ; then
  if [ -n "$SSLH_LISTEN_PORT" ] ; then
    ARGS=$ARGS" --listen "$SSLH_LISTEN_ADDRESS":"$SSLH_LISTEN_PORT
  else
    ARGS=$ARGS" --listen "$SSLH_LISTEN_ADDRESS":443"
  fi
else
  if [ -n "$SSLH_LISTEN_PORT" ] ; then
    ARGS=$ARGS" --listen 0.0.0.0:"$SSLH_LISTEN_PORT
  else
    ARGS=$ARGS" --listen 0.0.0.0:443"
  fi
fi

if [ "$SSLH_OPENVPN_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_OPENVPN_PORT" ] ; then
    ARGS=$ARGS" --openvpn "$SSLH_OPENVPN_ADDRESS":"$SSLH_OPENVPN_PORT
  else
    ARGS=$ARGS" --openvpn "$SSLH_OPENVPN_ADDRESS":1194"
  fi
fi

if [ "$SSLH_SSL_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_SSL_PORT" ] ; then
    ARGS=$ARGS" --ssl "$SSLH_SSL_ADDRESS":"$SSLH_SSL_PORT
  else      
    ARGS=$ARGS" --ssl "$SSLH_SSL_ADDRESS":443"
  fi
fi

if [ "$SSLH_SSH_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_SSH_PORT" ] ; then
    ARGS=$ARGS" --ssh "$SSLH_SSH_ADDRESS":"$SSLH_SSH_PORT
  else      
    ARGS=$ARGS" --ssh "$SSLH_SSH_ADDRESS":22"
  fi
fi

ARGS=$ARGS" -f"

/usr/sbin/sslh $ARGS

<commit_msg>Changed order of protocols, first SSH<commit_after>#!/bin/bash

# Author : Oxyno-zeta <<EMAIL>>

ARGS=""

if [ -n "$SSLH_USER" ] ; then
  ARGS=$ARGS" --user "$SSLH_USER
else
  ARGS=$ARGS" --user root"
fi

if [ -n "$SSLH_LISTEN_ADDRESS" ] ; then
  if [ -n "$SSLH_LISTEN_PORT" ] ; then
    ARGS=$ARGS" --listen "$SSLH_LISTEN_ADDRESS":"$SSLH_LISTEN_PORT
  else
    ARGS=$ARGS" --listen "$SSLH_LISTEN_ADDRESS":443"
  fi
else
  if [ -n "$SSLH_LISTEN_PORT" ] ; then
    ARGS=$ARGS" --listen 0.0.0.0:"$SSLH_LISTEN_PORT
  else
    ARGS=$ARGS" --listen 0.0.0.0:443"
  fi
fi

if [ "$SSLH_SSH_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_SSH_PORT" ] ; then
    ARGS=$ARGS" --ssh "$SSLH_SSH_ADDRESS":"$SSLH_SSH_PORT
  else      
    ARGS=$ARGS" --ssh "$SSLH_SSH_ADDRESS":22"
  fi
fi

if [ "$SSLH_OPENVPN_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_OPENVPN_PORT" ] ; then
    ARGS=$ARGS" --openvpn "$SSLH_OPENVPN_ADDRESS":"$SSLH_OPENVPN_PORT
  else
    ARGS=$ARGS" --openvpn "$SSLH_OPENVPN_ADDRESS":1194"
  fi
fi

if [ "$SSLH_SSL_ENABLE" == "yes" ] ; then
  if [ -n "$SSLH_SSL_PORT" ] ; then
    ARGS=$ARGS" --ssl "$SSLH_SSL_ADDRESS":"$SSLH_SSL_PORT
  else      
    ARGS=$ARGS" --ssl "$SSLH_SSL_ADDRESS":443"
  fi
fi

ARGS=$ARGS" -f"

/usr/sbin/sslh $ARGS


{'fraction_non_alphanumeric': 0.18170731707317073, 'fraction_numerical': 0.01869918699186992, 'mean_word_length': 3.3946428571428573, 'pattern_counts': {'":': 16, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5761100', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1063, 'n_words': 209}