From a42b47fc6300802fb7833f09de38a2f341bf8c9f Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 22:42:32 -0800 Subject: [PATCH] Update ntrip.md --- docs/concepts/ntrip.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() {