aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-08-17 12:07:59 +0200
committerHans Nilsson <[email protected]>2017-08-17 12:08:57 +0200
commitfac5b0637447a2f8b098dc92ff3a0b6b3cd4e962 (patch)
treed3743ae3c791d0ccf93ed75be459e8cd7053834d /lib
parent6ede2da826335960037299d9f3b0e66d072ea5a0 (diff)
downloadotp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.tar.gz
otp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.tar.bz2
otp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.zip
Accept non-binary options as socket-options
For example the option {raw,6,6,<<2,0,0,0>>}
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh_options.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl
index 7eeed70739..b41ad8b33b 100644
--- a/lib/ssh/src/ssh_options.erl
+++ b/lib/ssh/src/ssh_options.erl
@@ -236,7 +236,10 @@ save({Key,Value}, Defs, OptMap) when is_map(OptMap) ->
%% by the check fun will give an error exception:
error:{check,{BadValue,Extra}} ->
error({eoptions, {Key,BadValue}, Extra})
- end.
+ end;
+save(Opt, _Defs, OptMap) when is_map(OptMap) ->
+ OptMap#{socket_options := [Opt | maps:get(socket_options,OptMap)]}.
+
%%%================================================================
%%%