mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 07:18:53 -05:00
Set both IPs with one options.
Good if you want to set up a single MailCatcher instance for a development team.
This commit is contained in:
parent
36faf40f5f
commit
8d6c237d62
@ -23,6 +23,10 @@ module MailCatcher
|
||||
OptionParser.new do |parser|
|
||||
parser.banner = 'Usage: mailcatcher [options]'
|
||||
|
||||
parser.on('--ip IP', 'Set the ip address of both servers') do |ip|
|
||||
options[:smtp_ip] = options[:http_ip] = ip
|
||||
end
|
||||
|
||||
parser.on('--smtp-ip IP', 'Set the ip address of the smtp server') do |ip|
|
||||
options[:smtp_ip] = ip
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user