* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
addition to "password" for Telnet login prompts. [ruby-Bugs-10746] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7c31f2a120
commit
d520759f65
@ -1,3 +1,8 @@
|
||||
Wed Oct 25 07:12:03 2007 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
|
||||
addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
|
||||
|
||||
Wed Oct 25 06:34:11 2007 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
|
||||
|
@ -708,7 +708,7 @@ module Net
|
||||
# data is also yielded to the block as it is received.
|
||||
def login(options, password = nil) # :yield: recvdata
|
||||
login_prompt = /[Ll]ogin[: ]*\z/n
|
||||
password_prompt = /[Pp]assword[: ]*\z/n
|
||||
password_prompt = /[Pp]ass(?:word|phrase)[: ]*\z/n
|
||||
if options.kind_of?(Hash)
|
||||
username = options["Name"]
|
||||
password = options["Password"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user