Skip to content

Commit

Permalink
Merge pull request #12 from gleseur/master
Browse files Browse the repository at this point in the history
It should be possible to set service_mode to something else than 1
  • Loading branch information
b4k3r committed Mar 25, 2015
2 parents 52344c9 + 6978ebf commit 91e7182
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cloudflare/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ def mirage2(zone, value)
# @param weight [Intger] (applies to SRV)
# @param port [Integer] (applies to SRV)
# @param target [String] (applies to SRV)
# @param service_mode [String]

def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname = nil, protocol = nil, weight = nil, port = nil, target = nil)
def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname = nil, protocol = nil, weight = nil, port = nil, target = nil, service_mode = '1')
send_req({
a: :rec_new,
z: zone,
Expand All @@ -305,7 +306,7 @@ def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname =
weight: weight,
port: port,
target: target,
service_mode: '1'
service_mode: service_mode
})
end

Expand Down

0 comments on commit 91e7182

Please sign in to comment.