Take into account endpoint type from settings