Skip to content

Commit 3811e1c

Browse files
committed
Minor cleanup to the code to bring it in line with our coding standards
1 parent df97bf3 commit 3811e1c

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ All notable changes to this project will be documented in this file.
55

66
This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
77

8+
### [v0.1.1](https://github.com/SecOpsToolbox/tcp-wrapper-multiplexer/compare/v0.1.0...v0.1.1)
9+
10+
> Released on February, 16th 2021
11+
12+
- Minor cleanup to the code to bring it in line with our coding standards [`[head]`](https://github.com/SecOpsToolbox/tcp-wrapper-multiplexer/commit/)
13+
814
### [v0.1.0](https://github.com/SecOpsToolbox/tcp-wrapper-multiplexer/releases/v0.1.0)
915

1016
> Released on February, 9th 2021
1117
12-
- The initial commit [`[head]`](https://github.com/SecOpsToolbox/tcp-wrapper-multiplexer/commit/)
18+
- The initial commit [`[df97bf3]`](https://github.com/SecOpsToolbox/tcp-wrapper-multiplexer/commit/df97bf33e5ab4a79a9df9f5f5f4cb3bc6381eb09)
1319

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

src/multiplexer.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ FILTER_PATH="/usr/local/sbin"
2424
# ---------------------------------------------------------------------------------------- #
2525
# A wrapper to check if the script is being run in a terminal or not. #
2626
# ---------------------------------------------------------------------------------------- #
27+
2728
function in_terminal
2829
{
2930
[[ -t 1 ]] && return 0 || return 1;
@@ -34,6 +35,7 @@ function in_terminal
3435
# ---------------------------------------------------------------------------------------- #
3536
# Show output only if we are running in a terminal, but always log the message. #
3637
# ---------------------------------------------------------------------------------------- #
38+
3739
function debug()
3840
{
3941
local message="${1:-}"
@@ -76,6 +78,7 @@ function run_filters()
7678
# ---------------------------------------------------------------------------------------- #
7779
# The main function where all of the heavy lifting and script config is done. #
7880
# ---------------------------------------------------------------------------------------- #
81+
7982
function main()
8083
{
8184
#
@@ -92,12 +95,7 @@ function main()
9295
declare -g IP="${1}"
9396

9497
#
95-
# Turn off case sensitivity
96-
#
97-
shopt -s nocasematch
98-
99-
#
100-
# Country level blocking
98+
# Run the actual filters
10199
#
102100
run_filters
103101

0 commit comments

Comments
 (0)