validate method
Checks inspected root, inbound, outbound and GeoDAT fields in config.
Allows missing inputs and Core-style inbound port syntax. Throws
ArgumentError for malformed inspected fields or conflicting schema aliases.
This does not mutate config or validate every Core-specific setting.
Implementation
void validate(Map<String, dynamic> config) {
_validateObjectSection(config, 'log', required: false);
_validateObjectSection(config, 'routing', required: false);
_validateInbounds(readXraySchemaField(config, 'inbounds'));
_validateOutbounds(readXraySchemaField(config, 'outbounds'));
XrayGeodataUpdate.validate(config);
}