sudo socat -d -d TCP-LISTEN:80,fork TCP:$(ipconfig getifaddr en0):31000
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/socat
Reason: image not found
Abort trap: 6
and
sudo socat -d -d TCP-LISTEN:80,fork TCP:$(ipconfig getifaddr en0):31000
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/bin/socat
Reason: image not found
sudo ln -s /usr/local/opt/openssl/lib/libssl.1.1.dylib /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
sudo ln -s /usr/local/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib