2012-06-22 10:05:41 +01:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
# Accept a connection, then immediately close it. This simulates an ACL rejection.
|
|
|
|
|
2012-06-28 11:34:36 +01:00
|
|
|
require 'flexnbd/fake_dest'
|
2012-07-02 15:04:45 +01:00
|
|
|
include FlexNBD
|
2012-06-22 10:05:41 +01:00
|
|
|
|
2012-07-03 15:25:39 +01:00
|
|
|
addr, port = *ARGV
|
|
|
|
server = FakeDest.new( addr, port )
|
2012-07-02 15:04:45 +01:00
|
|
|
server.accept.close
|
2012-06-22 10:05:41 +01:00
|
|
|
|
2012-07-02 15:04:45 +01:00
|
|
|
server.close
|
2012-06-22 10:05:41 +01:00
|
|
|
|
|
|
|
exit(0)
|