Skip to content

Commit

Permalink
It should be possible to set service_mode tp something else than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Leseur committed Feb 10, 2015
1 parent 52344c9 commit 6978ebf
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

2 comments on commit 6978ebf

@ryush00
Copy link

@ryush00 ryush00 commented on 6978ebf May 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work. And Rdoc doesn't have this option.

@pencoyd
Copy link

@pencoyd pencoyd commented on 6978ebf May 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strongly encourage switching to https://api.cloudflare.com -- v4 API.

Please sign in to comment.