It's been pretty obvious for a number of years that his endgame is whatever Putin dictates. This election has simply made it harder to deny that Wikileaks operates as a front for Russian intelligence, but the evidence was there years ago. Their deep involvement in the Snowden affair and their steering him towards Russia and arranging for him to obtain Russian travel documents to that end should have been a much bigger story than it was at the time.