Permalink
Browse files

Remove trailing dash

  • Loading branch information...
1 parent 877b7b9 commit 2de53be2fec4d9de63cef7a2c28964dbb5fd92cf @msantos committed Nov 2, 2010
Showing with 2 additions and 3 deletions.
  1. +1 −1 src/seds.erl
  2. +1 −2 src/seds_protocol.erl
View
@@ -44,7 +44,7 @@
-record(state, {
acf = false, % allow client forwarding
acl = [], % forward IP blacklist
- acl_port = [], % allowed ports (whitelist)
+ acl_port = [], % allowed ports (whitelist)
f, % forwarders map
s, % socket
View
@@ -217,5 +217,4 @@ check_port(Port, Allowed) ->
% Remove the trailing dash and convert to an integer
list_to_sum(N) when is_list(N) ->
- list_to_integer(lists:reverse(tl(lists:reverse(N)))).
-
+ list_to_integer(string:strip(N, right, $-)).

0 comments on commit 2de53be

Please sign in to comment.