mitchell852 commented on a change in pull request #4142: Allow IPv6 Only
Caches, including monitoring and routing
URL: https://github.com/apache/trafficcontrol/pull/4142#discussion_r392442956
##########
File path: traffic_portal/app/src/common/api/ServerService.js
##########
@@ -42,6 +42,12 @@ var ServerService = function($http, locationUtils,
messageModel, ENV) {
};
this.createServer = function(server) {
+ if (server.ip6Address === undefined || server.ip6Address === '') {
Review comment:
actually, i think you can just do `if (!server.ip6Address)`
falsy values are null, undefined, empty strings, false, 0
so if it's any of those things, it will evaluate to true
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services