Add JAXB annotation to PeerAddress so API GET /peers/self works

This commit is contained in:
catbref 2019-11-12 15:26:12 +00:00
parent 7b24ac6e00
commit e1fbd3178a

View File

@ -6,6 +6,9 @@ import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import org.qora.settings.Settings;
import com.google.common.net.HostAndPort;
@ -15,6 +18,8 @@ import com.google.common.net.InetAddresses;
* Convenience class for encapsulating/parsing/rendering/converting peer addresses
* including late-stage resolving before actual use by a socket.
*/
// All properties to be converted to JSON via JAXB
@XmlAccessorType(XmlAccessType.FIELD)
public class PeerAddress {
// Properties