mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
REFACTOR: Opinion: TXT records are one long string (#2631)
Co-authored-by: Costas Drogos <costas.drogos@gmail.com> Co-authored-by: imlonghao <git@imlonghao.com> Co-authored-by: Jeffrey Cafferata <jeffrey@jcid.nl> Co-authored-by: Vincent Hagen <blackshadev@users.noreply.github.com>
This commit is contained in:
@ -543,11 +543,9 @@ var TXT = recordBuilder('TXT', {
|
||||
record.name = args.name;
|
||||
// Store the strings from the user verbatim.
|
||||
if (_.isString(args.target)) {
|
||||
record.txtstrings = [args.target];
|
||||
record.target = args.target; // Overwritten by the Go code
|
||||
record.target = args.target;
|
||||
} else {
|
||||
record.txtstrings = args.target;
|
||||
record.target = args.target.join(''); // Overwritten by the Go code
|
||||
record.target = args.target.join('');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user