Skip to content

Commit

Permalink
Fix SRV records parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
leshik committed Mar 20, 2019
1 parent 13935c9 commit 63e7d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ function CloudflareCli(options) {
service: serverParts[0],
proto: serverParts[1],
name: _.slice(serverParts, 2).join('.'),
priority: contentParts[1],
weight: contentParts[1],
port: contentParts[2],
priority: parseInt(contentParts[1]),
weight: parseInt(contentParts[1]),
port: parseInt(contentParts[2]),
target: contentParts[3]
}
}
Expand Down

0 comments on commit 63e7d6f

Please sign in to comment.