def srv_target_to_url(srv_rec, srv_target):
    """Convert SRV record to URL"""
    protocol, _rest = srv_rec.split('.', 1)
    host, port, _prio, _weight = srv_target
    return '%s://%s:%s' % (protocol[1:], host, port)
