Skip to content

Commit 6978ebf

Browse files
author
Guillaume Leseur
committed
It should be possible to set service_mode tp something else than 1
1 parent 52344c9 commit 6978ebf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/cloudflare/connection.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ def mirage2(zone, value)
289289
# @param weight [Intger] (applies to SRV)
290290
# @param port [Integer] (applies to SRV)
291291
# @param target [String] (applies to SRV)
292+
# @param service_mode [String]
292293

293-
def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname = nil, protocol = nil, weight = nil, port = nil, target = nil)
294+
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')
294295
send_req({
295296
a: :rec_new,
296297
z: zone,
@@ -305,7 +306,7 @@ def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname =
305306
weight: weight,
306307
port: port,
307308
target: target,
308-
service_mode: '1'
309+
service_mode: service_mode
309310
})
310311
end
311312

0 commit comments

Comments
 (0)