mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
config: EPP port. spec use config; depp/user use config not custom for test
This commit is contained in:
parent
647d68b053
commit
53695c3647
2 changed files with 4 additions and 2 deletions
|
@ -92,8 +92,10 @@ module Epp
|
|||
end
|
||||
|
||||
def server
|
||||
port = ENV['epp_port'] || 700
|
||||
hostname = ENV['epp_hostname'] || 'localhost'
|
||||
# tag and password not in use, add those at login xml
|
||||
@server ||= Epp::Server.new({ server: 'localhost', port: 701, tag: '', password: '' })
|
||||
@server ||= Epp::Server.new({ server: hostname, port: port, tag: '', password: '' })
|
||||
end
|
||||
|
||||
def parse_response(raw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue