diff --git a/docs/concepts/ntrip.md b/docs/concepts/ntrip.md index a4c2fa1..e76f688 100644 --- a/docs/concepts/ntrip.md +++ b/docs/concepts/ntrip.md @@ -60,11 +60,14 @@ namespace Ntrip private readonly int _port; private string _auth; private Socket sckt; - public Client(string host, int port, string authKey = null) + public Client(string host, int port) { _host = host; _port = port; - _auth = authKey; + } + public Client(string host, int port, string username, string password) : this(host, port) + { + _auth = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password)); } public IEnumerable GetSourceTable() {